Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Jan 2018 23:39:27 +0000 (23:39 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Jan 2018 23:39:27 +0000 (23:39 +0000)
Source/WebKit:

* UIProcess/ios/WKPDFPageNumberIndicator.mm:
(-[WKPDFPageNumberIndicator _makeRoundedCorners]):

Source/WebKitLegacy/mac:

* Carbon/HIWebView.mm:
(overrideCGContext):
(restoreCGContext):

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKPDFPageNumberIndicator.mm
Source/WebKitLegacy/mac/Carbon/HIWebView.mm
Source/WebKitLegacy/mac/ChangeLog

index 8624be5..3c9ded9 100644 (file)
@@ -1,3 +1,10 @@
+2018-01-18  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.
+
+        * UIProcess/ios/WKPDFPageNumberIndicator.mm:
+        (-[WKPDFPageNumberIndicator _makeRoundedCorners]):
+
 2018-01-18  Youenn Fablet  <youenn@apple.com>
 
         Do not go to the storage process when loading a main resource if there is no service worker registered
index 6e389e6..979b30d 100644 (file)
@@ -183,7 +183,10 @@ const NSTimeInterval indicatorMoveDuration = 0.3;
     CGContextSaveGState(context);
     CGContextAddRect(context, cornerImageBounds);
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     UIBezierPath *cornerPath = [UIBezierPath bezierPathWithRoundedRect:cornerImageBounds byRoundingCorners:(UIRectCorner)UIAllCorners cornerRadii:CGSizeMake(indicatorCornerRadius, indicatorCornerRadius)];
+#pragma clang diagnostic pop
     CGContextAddPath(context, [cornerPath CGPath]);
     CGContextEOClip(context);
     CGContextFillRect(context, cornerImageBounds);
index e9f5864..406b779 100644 (file)
@@ -288,9 +288,9 @@ static UInt32 GetBehaviors()
 
 static CGContextRef overrideCGContext(NSWindow *window, CGContextRef context)
 {
-    NSWindowGraphicsContext *graphicsContext = (NSWindowGraphicsContext *)window.graphicsContext;
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
+    NSWindowGraphicsContext *graphicsContext = (NSWindowGraphicsContext *)window.graphicsContext;
     CGContextRef savedContext = (CGContextRef)graphicsContext.graphicsPort;
 #pragma clang diagnostic pop
     CGContextRetain(savedContext);
@@ -300,7 +300,10 @@ static CGContextRef overrideCGContext(NSWindow *window, CGContextRef context)
 
 static void restoreCGContext(NSWindow *window, CGContextRef savedContext)
 {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     NSWindowGraphicsContext *graphicsContext = (NSWindowGraphicsContext *)window.graphicsContext;
+#pragma clang diagnostic pop
     [graphicsContext _web_setGraphicsPort:savedContext];
     CGContextRelease(savedContext);
 }
index eaad9af..ad273fc 100644 (file)
@@ -1,3 +1,11 @@
+2018-01-18  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.
+
+        * Carbon/HIWebView.mm:
+        (overrideCGContext):
+        (restoreCGContext):
+
 2018-01-18  Dan Bernstein  <mitz@apple.com>
 
         [Xcode] Streamline and future-proof target-macOS-version-dependent build setting definitions