Title: [108735] trunk/Source/WebCore
- Revision
- 108735
- Author
- [email protected]
- Date
- 2012-02-23 23:37:34 -0800 (Thu, 23 Feb 2012)
Log Message
Web Inspector: hide color picker upon panel switch.
https://bugs.webkit.org/show_bug.cgi?id=79355
Reviewed by Vsevolod Vlasov.
* inspector/front-end/ElementsPanel.js:
(WebInspector.ElementsPanel.prototype.willHide):
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylesSidebarPane.prototype._showUserAgentStylesSettingChanged):
(WebInspector.StylesSidebarPane.prototype.willHide):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (108734 => 108735)
--- trunk/Source/WebCore/ChangeLog 2012-02-24 07:28:39 UTC (rev 108734)
+++ trunk/Source/WebCore/ChangeLog 2012-02-24 07:37:34 UTC (rev 108735)
@@ -1,5 +1,18 @@
2012-02-23 Pavel Feldman <[email protected]>
+ Web Inspector: hide color picker upon panel switch.
+ https://bugs.webkit.org/show_bug.cgi?id=79355
+
+ Reviewed by Vsevolod Vlasov.
+
+ * inspector/front-end/ElementsPanel.js:
+ (WebInspector.ElementsPanel.prototype.willHide):
+ * inspector/front-end/StylesSidebarPane.js:
+ (WebInspector.StylesSidebarPane.prototype._showUserAgentStylesSettingChanged):
+ (WebInspector.StylesSidebarPane.prototype.willHide):
+
+2012-02-23 Pavel Feldman <[email protected]>
+
Web Inspector: make color review larger in the color picker.
https://bugs.webkit.org/show_bug.cgi?id=79339
Modified: trunk/Source/WebCore/inspector/front-end/ElementsPanel.js (108734 => 108735)
--- trunk/Source/WebCore/inspector/front-end/ElementsPanel.js 2012-02-24 07:28:39 UTC (rev 108734)
+++ trunk/Source/WebCore/inspector/front-end/ElementsPanel.js 2012-02-24 07:37:34 UTC (rev 108735)
@@ -154,6 +154,11 @@
// Detach heavy component on hide
this.contentElement.removeChild(this.treeOutline.element);
+ for (var pane in this.sidebarPanes) {
+ if (this.sidebarPanes[pane].willHide)
+ this.sidebarPanes[pane].willHide();
+ }
+
WebInspector.Panel.prototype.willHide.call(this);
},
Modified: trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js (108734 => 108735)
--- trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js 2012-02-24 07:28:39 UTC (rev 108734)
+++ trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js 2012-02-24 07:37:34 UTC (rev 108735)
@@ -864,6 +864,12 @@
_showUserAgentStylesSettingChanged: function()
{
this._rebuildUpdate();
+ },
+
+ willHide: function()
+ {
+ if (this._spectrum.visible)
+ this._spectrum.hide();
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes