Title: [105748] trunk/Source/WebCore
Revision
105748
Author
[email protected]
Date
2012-01-24 10:25:08 -0800 (Tue, 24 Jan 2012)

Log Message

Web Inspector: Scripts panel tabbed editor container should have gray background when there are no open tabs.
https://bugs.webkit.org/show_bug.cgi?id=76903

Reviewed by Yury Semikhatsky.

* inspector/front-end/TabbedPane.js:
(WebInspector.TabbedPane.prototype._updateTabElements):
* inspector/front-end/tabbedPane.css:
(.tabbed-pane-content.has-no-tabs):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (105747 => 105748)


--- trunk/Source/WebCore/ChangeLog	2012-01-24 18:22:43 UTC (rev 105747)
+++ trunk/Source/WebCore/ChangeLog	2012-01-24 18:25:08 UTC (rev 105748)
@@ -1,5 +1,17 @@
 2012-01-24  Vsevolod Vlasov  <[email protected]>
 
+        Web Inspector: Scripts panel tabbed editor container should have gray background when there are no open tabs.
+        https://bugs.webkit.org/show_bug.cgi?id=76903
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/front-end/TabbedPane.js:
+        (WebInspector.TabbedPane.prototype._updateTabElements):
+        * inspector/front-end/tabbedPane.css:
+        (.tabbed-pane-content.has-no-tabs):
+
+2012-01-24  Vsevolod Vlasov  <[email protected]>
+
         Web Inspector: OpenResourceDialog should work when there are no open tabs in scripts panel.
         https://bugs.webkit.org/show_bug.cgi?id=76907
 

Modified: trunk/Source/WebCore/inspector/front-end/TabbedPane.js (105747 => 105748)


--- trunk/Source/WebCore/inspector/front-end/TabbedPane.js	2012-01-24 18:22:43 UTC (rev 105747)
+++ trunk/Source/WebCore/inspector/front-end/TabbedPane.js	2012-01-24 18:25:08 UTC (rev 105748)
@@ -208,6 +208,11 @@
         if (!this.isShowing())
             return;
 
+        if (!this._tabs.length)
+            this._contentElement.addStyleClass("has-no-tabs");
+        else
+            this._contentElement.removeStyleClass("has-no-tabs");
+        
         if (!this._measuredDropDownButtonWidth)
             this._measureDropDownButton();
 

Modified: trunk/Source/WebCore/inspector/front-end/tabbedPane.css (105747 => 105748)


--- trunk/Source/WebCore/inspector/front-end/tabbedPane.css	2012-01-24 18:22:43 UTC (rev 105747)
+++ trunk/Source/WebCore/inspector/front-end/tabbedPane.css	2012-01-24 18:25:08 UTC (rev 105748)
@@ -40,6 +40,10 @@
     overflow: auto;
 }
 
+.tabbed-pane-content.has-no-tabs {
+    background-color: lightgray;
+}
+
 .tabbed-pane-header {
     height: 23px;
     border-bottom: 1px solid rgb(163, 163, 163);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to