Title: [246722] trunk/Source/WebInspectorUI
Revision
246722
Author
[email protected]
Date
2019-06-23 11:32:51 -0700 (Sun, 23 Jun 2019)

Log Message

Web Inspector: Styles: show green highlight for newly added properties only when name and value are present
https://bugs.webkit.org/show_bug.cgi?id=199131

Reviewed by Matt Baker.

* UserInterface/Views/SpreadsheetStyleProperty.js:
(WI.SpreadsheetStyleProperty.prototype.updateStatus):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (246721 => 246722)


--- trunk/Source/WebInspectorUI/ChangeLog	2019-06-23 16:56:07 UTC (rev 246721)
+++ trunk/Source/WebInspectorUI/ChangeLog	2019-06-23 18:32:51 UTC (rev 246722)
@@ -1,3 +1,13 @@
+2019-06-23  Nikita Vasilyev  <[email protected]>
+
+        Web Inspector: Styles: show green highlight for newly added properties only when name and value are present
+        https://bugs.webkit.org/show_bug.cgi?id=199131
+
+        Reviewed by Matt Baker.
+
+        * UserInterface/Views/SpreadsheetStyleProperty.js:
+        (WI.SpreadsheetStyleProperty.prototype.updateStatus):
+
 2019-06-22  Nikita Vasilyev  <[email protected]>
 
         REGRESSION(r241980): Web Inspector: Styles: Pressing Tab/Enter on last property no longer focuses on selector on next rule

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js (246721 => 246722)


--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2019-06-23 16:56:07 UTC (rev 246721)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js	2019-06-23 18:32:51 UTC (rev 246722)
@@ -313,7 +313,7 @@
         if (!this._property.enabled)
             classNames.push("disabled");
 
-        if (this._property.modified)
+        if (this._property.modified && this._property.name && this._property.rawValue)
             classNames.push("modified");
 
         if (this._selected)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to