Title: [188326] trunk/Source/WebInspectorUI
Revision
188326
Author
[email protected]
Date
2015-08-11 22:45:49 -0700 (Tue, 11 Aug 2015)

Log Message

Web Inspector: Disabling attribute styles should not be possible
https://bugs.webkit.org/show_bug.cgi?id=147922

Reviewed by Timothy Hatcher.

* UserInterface/Views/CSSStyleDeclarationSection.js:
(WebInspector.CSSStyleDeclarationSection):
Increases the specificity of the if statement that adds rule disable state toggling to the icon.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (188325 => 188326)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-08-12 05:40:27 UTC (rev 188325)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-08-12 05:45:49 UTC (rev 188326)
@@ -1,5 +1,16 @@
 2015-08-11  Devin Rousso  <[email protected]>
 
+        Web Inspector: Disabling attribute styles should not be possible
+        https://bugs.webkit.org/show_bug.cgi?id=147922
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/CSSStyleDeclarationSection.js:
+        (WebInspector.CSSStyleDeclarationSection):
+        Increases the specificity of the if statement that adds rule disable state toggling to the icon.
+
+2015-08-11  Devin Rousso  <[email protected]>
+
         Web Inspector: Update to CodeMirror 5.5 or later
         https://bugs.webkit.org/show_bug.cgi?id=147109
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js (188325 => 188326)


--- trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js	2015-08-12 05:40:27 UTC (rev 188325)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js	2015-08-12 05:45:49 UTC (rev 188326)
@@ -99,8 +99,7 @@
             break;
         }
 
-        // Matches all situations except for User Agent styles.
-        if (!(style.ownerRule && style.ownerRule.type === WebInspector.CSSRule.Type.UserAgent)) {
+        if (style.editable) {
             this._iconElement.classList.add("toggle-able");
             this._iconElement.title = WebInspector.UIString("Comment All Properties");
             this._iconElement.addEventListener("click", this._toggleRuleOnOff.bind(this));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to