Title: [186585] trunk/Source/WebInspectorUI
Revision
186585
Author
drou...@apple.com
Date
2015-07-08 23:41:12 -0700 (Wed, 08 Jul 2015)

Log Message

Web Inspector: Copy Rule in the context menu copies hidden properties in the rule
https://bugs.webkit.org/show_bug.cgi?id=146775

Reviewed by Timothy Hatcher.

* UserInterface/Views/CSSStyleDeclarationSection.js:
(WebInspector.CSSStyleDeclarationSection.prototype._generateCSSRuleString):
Now only uses properties from the rule's visibleProperties list.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (186584 => 186585)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-07-09 06:04:42 UTC (rev 186584)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-07-09 06:41:12 UTC (rev 186585)
@@ -1,3 +1,14 @@
+2015-07-08  Devin Rousso  <drou...@apple.com>
+
+        Web Inspector: Copy Rule in the context menu copies hidden properties in the rule
+        https://bugs.webkit.org/show_bug.cgi?id=146775
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/CSSStyleDeclarationSection.js:
+        (WebInspector.CSSStyleDeclarationSection.prototype._generateCSSRuleString):
+        Now only uses properties from the rule's visibleProperties list.
+
 2015-07-08  Timothy Hatcher  <timo...@apple.com>
 
         Web Inspector: Add page weight and time back to the toolbar dashboard

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js (186584 => 186585)


--- trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js	2015-07-09 06:04:42 UTC (rev 186584)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js	2015-07-09 06:41:12 UTC (rev 186585)
@@ -418,7 +418,7 @@
 
         styleText += " {\n";
 
-        for (var property of this._style.properties) {
+        for (var property of this._style.visibleProperties) {
             styleText += "    ".repeat(numMediaQueries + 1) + property.text.trim();
 
             if (!styleText.endsWith(";"))
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to