Remove the Inspector's WebView for the view hierarchy when closed
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Aug 2008 18:10:53 +0000 (18:10 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Aug 2008 18:10:53 +0000 (18:10 +0000)
        while attached. This prevents it from showing in the background
        while the page changes.

        Reviewed by Kevin McCullough.

        * WebCoreSupport/WebInspectorClient.mm:
        (-[WebInspectorWindowController close:]): Call removeFromSuperview
        on the Inspector's WebView if it isn't attached, so it will not
        be visible when navigating pages while closed.

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

WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebInspectorClient.mm

index ccf406b..3d733ee 100644 (file)
@@ -1,5 +1,18 @@
 2008-08-12  Timothy Hatcher  <timothy@apple.com>
 
+        Remove the Inspector's WebView for the view hierarchy when closed
+        while attached. This prevents it from showing in the background
+        while the page changes.
+
+        Reviewed by Kevin McCullough.
+
+        * WebCoreSupport/WebInspectorClient.mm:
+        (-[WebInspectorWindowController close:]): Call removeFromSuperview
+        on the Inspector's WebView if it isn't attached, so it will not
+        be visible when navigating pages while closed.
+
+2008-08-12  Timothy Hatcher  <timothy@apple.com>
+
         Make the docked Web Inspector resizable.
 
         https://bugs.webkit.org/show_bug.cgi?id=14282
index 127c805..889fd1f 100644 (file)
@@ -269,6 +269,8 @@ void WebInspectorClient::updateWindowTitle() const
         if ([_inspectedWebView _isClosed])
             return;
 
+        [_webView removeFromSuperview];
+
         WebFrameView *frameView = [[_inspectedWebView mainFrame] frameView];
 
         NSRect frameViewRect = [frameView frame];