<rdar://problem/31906525> WebCore-7604.1.19 has failed to build
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 30 Apr 2017 19:52:24 +0000 (19:52 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 30 Apr 2017 19:52:24 +0000 (19:52 +0000)
* platform/ios/WebItemProviderPasteboard.mm:
(-[WebItemProviderPasteboard setItemsUsingRegistrationInfoLists:]): Resolved type ambiguity
  by using allocUIItemProviderInstance() instead of [getUIItemProviderClass() alloc].

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215990 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/WebItemProviderPasteboard.mm

index cc86ae9..396cede 100644 (file)
@@ -1,3 +1,11 @@
+2017-04-30  Dan Bernstein  <mitz@apple.com>
+
+        <rdar://problem/31906525> WebCore-7604.1.19 has failed to build
+
+        * platform/ios/WebItemProviderPasteboard.mm:
+        (-[WebItemProviderPasteboard setItemsUsingRegistrationInfoLists:]): Resolved type ambiguity
+          by using allocUIItemProviderInstance() instead of [getUIItemProviderClass() alloc].
+
 2017-04-30  Joanmarie Diggs  <jdiggs@igalia.com>
 
         [ATK] Implement support for aria-autocomplete
index ee5912e..b9aa1e9 100644 (file)
@@ -277,7 +277,7 @@ static BOOL isImageType(NSString *type)
         if (!itemList.numberOfItems)
             continue;
 
-        auto itemProvider = adoptNS([[getUIItemProviderClass() alloc] init]);
+        auto itemProvider = adoptNS([allocUIItemProviderInstance() init]);
         [itemList enumerateItems:[itemProvider] (WebItemProviderRegistrationInfo *item, NSUInteger) {
             if (item.representingObject) {
                 [itemProvider registerObject:item.representingObject visibility:UIItemProviderRepresentationOptionsVisibilityAll];