Title: [227167] trunk/Source
Revision
227167
Author
[email protected]
Date
2018-01-18 15:39:27 -0800 (Thu, 18 Jan 2018)

Log Message

Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.

Source/WebKit:

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

Source/WebKitLegacy/mac:

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (227166 => 227167)


--- trunk/Source/WebKit/ChangeLog	2018-01-18 23:01:46 UTC (rev 227166)
+++ trunk/Source/WebKit/ChangeLog	2018-01-18 23:39:27 UTC (rev 227167)
@@ -1,3 +1,10 @@
+2018-01-18  Ryan Haddad  <[email protected]>
+
+        Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.
+
+        * UIProcess/ios/WKPDFPageNumberIndicator.mm:
+        (-[WKPDFPageNumberIndicator _makeRoundedCorners]):
+
 2018-01-18  Youenn Fablet  <[email protected]>
 
         Do not go to the storage process when loading a main resource if there is no service worker registered

Modified: trunk/Source/WebKit/UIProcess/ios/WKPDFPageNumberIndicator.mm (227166 => 227167)


--- trunk/Source/WebKit/UIProcess/ios/WKPDFPageNumberIndicator.mm	2018-01-18 23:01:46 UTC (rev 227166)
+++ trunk/Source/WebKit/UIProcess/ios/WKPDFPageNumberIndicator.mm	2018-01-18 23:39:27 UTC (rev 227167)
@@ -183,7 +183,10 @@
     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);

Modified: trunk/Source/WebKitLegacy/mac/Carbon/HIWebView.mm (227166 => 227167)


--- trunk/Source/WebKitLegacy/mac/Carbon/HIWebView.mm	2018-01-18 23:01:46 UTC (rev 227166)
+++ trunk/Source/WebKitLegacy/mac/Carbon/HIWebView.mm	2018-01-18 23:39:27 UTC (rev 227167)
@@ -288,9 +288,9 @@
 
 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 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);
 }

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (227166 => 227167)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2018-01-18 23:01:46 UTC (rev 227166)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2018-01-18 23:39:27 UTC (rev 227167)
@@ -1,3 +1,11 @@
+2018-01-18  Ryan Haddad  <[email protected]>
+
+        Unreviewed, suppress deprecation warnings to fix the build with a newer SDK.
+
+        * Carbon/HIWebView.mm:
+        (overrideCGContext):
+        (restoreCGContext):
+
 2018-01-18  Dan Bernstein  <[email protected]>
 
         [Xcode] Streamline and future-proof target-macOS-version-dependent build setting definitions
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to