Title: [105623] trunk/Source/WebCore
Revision
105623
Author
pfeld...@chromium.org
Date
2012-01-23 07:47:26 -0800 (Mon, 23 Jan 2012)

Log Message

Web Inspector: inspector close button is missing in the dock-to-right mode.
https://bugs.webkit.org/show_bug.cgi?id=76829

Reviewed by Timothy Hatcher.

* inspector/front-end/inspector.js:
(WebInspector.set attached):
(WebInspector.get _setCompactMode):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (105622 => 105623)


--- trunk/Source/WebCore/ChangeLog	2012-01-23 15:24:56 UTC (rev 105622)
+++ trunk/Source/WebCore/ChangeLog	2012-01-23 15:47:26 UTC (rev 105623)
@@ -1,3 +1,14 @@
+2012-01-23  Pavel Feldman  <pfeld...@google.com>
+
+        Web Inspector: inspector close button is missing in the dock-to-right mode.
+        https://bugs.webkit.org/show_bug.cgi?id=76829
+
+        Reviewed by Timothy Hatcher.
+
+        * inspector/front-end/inspector.js:
+        (WebInspector.set attached):
+        (WebInspector.get _setCompactMode):
+
 2012-01-23  Vsevolod Vlasov  <vse...@chromium.org>
 
         Web Inspector: IndexedDBModel should keep track of requests sent to the backend.

Modified: trunk/Source/WebCore/inspector/front-end/inspector.js (105622 => 105623)


--- trunk/Source/WebCore/inspector/front-end/inspector.js	2012-01-23 15:24:56 UTC (rev 105622)
+++ trunk/Source/WebCore/inspector/front-end/inspector.js	2012-01-23 15:47:26 UTC (rev 105623)
@@ -187,6 +187,11 @@
             this._dockToggleButton.toggled = !x;
         }
 
+        if (x)
+            document.body.removeStyleClass("detached");
+        else
+            document.body.addStyleClass("detached");
+
         this._setCompactMode(x && !WebInspector.settings.dockToRight.get());
     },
 
@@ -198,13 +203,10 @@
     _setCompactMode: function(x)
     {
         var body = document.body;
-        if (x) {
-            body.removeStyleClass("detached");
+        if (x)
             body.addStyleClass("compact");
-        } else {
+        else
             body.removeStyleClass("compact");
-            body.addStyleClass("detached");
-        }
 
         // This may be called before doLoadedDone, hence the bulk of inspector objects may
         // not be created yet.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to