Title: [266069] trunk/Source/WebInspectorUI
Revision
266069
Author
drou...@apple.com
Date
2020-08-24 10:21:07 -0700 (Mon, 24 Aug 2020)

Log Message

Web Inspector: Elements: Styles: don't show non-inherited properties
https://bugs.webkit.org/show_bug.cgi?id=215682

Reviewed by Brian Burg.

* UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:
(WI.SpreadsheetCSSStyleDeclarationEditor.prototype.get propertiesToRender):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (266068 => 266069)


--- trunk/Source/WebInspectorUI/ChangeLog	2020-08-24 17:17:55 UTC (rev 266068)
+++ trunk/Source/WebInspectorUI/ChangeLog	2020-08-24 17:21:07 UTC (rev 266069)
@@ -1,5 +1,15 @@
 2020-08-24  Devin Rousso  <drou...@apple.com>
 
+        Web Inspector: Elements: Styles: don't show non-inherited properties
+        https://bugs.webkit.org/show_bug.cgi?id=215682
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:
+        (WI.SpreadsheetCSSStyleDeclarationEditor.prototype.get propertiesToRender):
+
+2020-08-24  Devin Rousso  <drou...@apple.com>
+
         Web Inspector: Elements: Styles: grey out properties that aren't used/apply
         https://bugs.webkit.org/show_bug.cgi?id=215680
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js (266068 => 266069)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js	2020-08-24 17:17:55 UTC (rev 266068)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js	2020-08-24 17:21:07 UTC (rev 266069)
@@ -230,6 +230,9 @@
         else
             properties = this._style.properties;
 
+        if (this._style.inherited)
+            properties = properties.filter((property) => property.inherited);
+
         if (this._sortPropertiesByName)
             properties.sort((a, b) => a.name.extendedLocaleCompare(b.name));
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to