Web Inspector: Color picker should not be available in Computed Styles pane.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Feb 2013 15:15:17 +0000 (15:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Feb 2013 15:15:17 +0000 (15:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109697

Patch by Vladislav Kaznacheev <kaznacheev@chromium.org> on 2013-02-14
Reviewed by Alexander Pavlov.

Changed the parentPane parameter of WebInspector.ComputedStylePropertiesSection to the correct value
(the ComputedStyleSidebarPane instance).

* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/StylesSidebarPane.js

index d13dcc263288c07fa8b92d3213f04a66edba6cb0..5ca51683cd7332c6d2a0a747e46ed692fddf57d9 100644 (file)
@@ -1,3 +1,16 @@
+2013-02-14  Vladislav Kaznacheev  <kaznacheev@chromium.org>
+
+        Web Inspector: Color picker should not be available in Computed Styles pane.
+        https://bugs.webkit.org/show_bug.cgi?id=109697
+
+        Reviewed by Alexander Pavlov.
+
+        Changed the parentPane parameter of WebInspector.ComputedStylePropertiesSection to the correct value
+        (the ComputedStyleSidebarPane instance).
+
+        * inspector/front-end/StylesSidebarPane.js:
+        (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
+
 2013-02-14  Yury Semikhatsky  <yurys@chromium.org>
 
         Web Inspector: don't create static local string for program literal in InspectorTimelineAgent
index d54102db4e50be24be66ef3c2e0b08eb7cb1ce64..15ed5e14cc985d41748427375716655499c362a9 100644 (file)
@@ -605,7 +605,7 @@ WebInspector.StylesSidebarPane.prototype = {
                 editable = true;
 
             if (computedStyle)
-                var section = new WebInspector.ComputedStylePropertiesSection(this, styleRule, usedProperties);
+                var section = new WebInspector.ComputedStylePropertiesSection(this._computedStylePane, styleRule, usedProperties);
             else {
                 var section = new WebInspector.StylePropertiesSection(this, styleRule, editable, styleRule.isInherited, lastWasSeparator);
                 section._markSelectorMatches();
@@ -1353,7 +1353,7 @@ WebInspector.StylePropertiesSection.prototype = {
 /**
  * @constructor
  * @extends {WebInspector.PropertiesSection}
- * @param {!WebInspector.StylesSidebarPane} parentPane
+ * @param {!WebInspector.ComputedStyleSidebarPane} parentPane
  * @param {!Object} styleRule
  * @param {!Object.<string, boolean>} usedProperties
  */