Web Inspector: clean up WKWebView configuration code
authorbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Mar 2018 21:22:51 +0000 (21:22 +0000)
committerbburg@apple.com <bburg@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Mar 2018 21:22:51 +0000 (21:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183747
<rdar://problem/38629343>

Reviewed by Timothy Hatcher.

* UIProcess/mac/WKInspectorViewController.mm:
(-[WKInspectorViewController webView]): Always use system
appearance for Inspector's web content.

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

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/mac/WKInspectorViewController.mm

index 04a34c0..1922386 100644 (file)
@@ -1,3 +1,15 @@
+2018-03-19  Brian Burg  <bburg@apple.com>
+
+        Web Inspector: clean up WKWebView configuration code
+        https://bugs.webkit.org/show_bug.cgi?id=183747
+        <rdar://problem/38629343>
+
+        Reviewed by Timothy Hatcher.
+
+        * UIProcess/mac/WKInspectorViewController.mm:
+        (-[WKInspectorViewController webView]): Always use system
+        appearance for Inspector's web content.
+
 2018-03-19  Eric Carlson  <eric.carlson@apple.com>
 
         [Extra zoom mode] Require fullscreen for video playback
index 42ebb03..05ffc79 100644 (file)
@@ -37,8 +37,8 @@
 #import "WKPreferencesPrivate.h"
 #import "WKProcessPoolInternal.h"
 #import "WKUIDelegatePrivate.h"
-#import "WKWebView.h"
 #import "WKWebViewConfigurationPrivate.h"
+#import "WKWebViewPrivate.h"
 #import "WeakObjCPtr.h"
 #import "WebInspectorProxy.h"
 #import "WebInspectorUtilities.h"
@@ -93,6 +93,7 @@ using namespace WebKit;
         [_webView setNavigationDelegate:self];
         [_webView setInspectorWKWebViewDelegate:self];
         [_webView _setAutomaticallyAdjustsContentInsets:NO];
+        [_webView _setUseSystemAppearance:YES];
         [_webView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
     }