Unreviewed, continue to fix build failures due to AppKit API deprecation
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Dec 2017 23:50:11 +0000 (23:50 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Dec 2017 23:50:11 +0000 (23:50 +0000)
Wraps more code in -Wdeprecated-declarations.

* Carbon/HIWebView.mm:
(overrideCGContext):

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

Source/WebKitLegacy/mac/Carbon/HIWebView.mm
Source/WebKitLegacy/mac/ChangeLog

index 379a2fa..443204a 100644 (file)
@@ -286,7 +286,10 @@ 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"
     CGContextRef savedContext = (CGContextRef)graphicsContext.graphicsPort;
+#pragma clang diagnostic pop
     CGContextRetain(savedContext);
     [graphicsContext _web_setGraphicsPort:context];
     return savedContext;
index 4cc7c80..063a80a 100644 (file)
@@ -1,5 +1,14 @@
 2017-12-22  Wenson Hsieh  <wenson_hsieh@apple.com>
 
+        Unreviewed, continue to fix build failures due to AppKit API deprecation
+
+        Wraps more code in -Wdeprecated-declarations.
+
+        * Carbon/HIWebView.mm:
+        (overrideCGContext):
+
+2017-12-22  Wenson Hsieh  <wenson_hsieh@apple.com>
+
         Unreviewed, fix build failures due to using deprecated AppKit symbols when building 32-bit
 
         Wrap some more code in -Wdeprecated-declarations to try and fix the 32-bit build using the newest SDK.