Unreviewed, fix the build using the latest SDK
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2017 20:22:29 +0000 (20:22 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 May 2017 20:22:29 +0000 (20:22 +0000)
Add deprecation guards around newly introduced (and deprecated) SPI.

* platform/ios/WebItemProviderPasteboard.mm:
(-[WebItemProviderPasteboard setItemsUsingRegistrationInfoLists:]):

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

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

index f07e376..8da3331 100644 (file)
@@ -1,3 +1,12 @@
+2017-05-26  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Unreviewed, fix the build using the latest SDK
+
+        Add deprecation guards around newly introduced (and deprecated) SPI.
+
+        * platform/ios/WebItemProviderPasteboard.mm:
+        (-[WebItemProviderPasteboard setItemsUsingRegistrationInfoLists:]):
+
 2017-05-26  Beth Dakin  <bdakin@apple.com>
 
         Media documents inside iframes should not get controls in the TouchBar unless the 
index 0da447c..18302e3 100644 (file)
@@ -295,7 +295,10 @@ static BOOL isImageType(NSString *type)
                 return nil;
             }];
         }];
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
         [itemProvider setEstimatedDisplayedSize:itemList.estimatedDisplayedSize];
+#pragma clang diagnostic pop
         [itemProvider setSuggestedName:itemList.suggestedName];
         [providers addObject:itemProvider.get()];
     }