Web Inspector: Changes: dismissing a blank property makes style rule to show in Chang...
authornvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jul 2019 23:21:32 +0000 (23:21 +0000)
committernvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Jul 2019 23:21:32 +0000 (23:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199760

Reviewed by Devin Rousso.

* UserInterface/Models/CSSProperty.js:
(WI.CSSProperty.prototype._updateOwnerStyleText):
Call updatePropertiesModifiedState even when _updateOwnerStyleText returns early.

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/CSSProperty.js

index 45f8b2f..796ceba 100644 (file)
@@ -1,3 +1,14 @@
+2019-07-12  Nikita Vasilyev  <nvasilyev@apple.com>
+
+        Web Inspector: Changes: dismissing a blank property makes style rule to show in Changes panel
+        https://bugs.webkit.org/show_bug.cgi?id=199760
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Models/CSSProperty.js:
+        (WI.CSSProperty.prototype._updateOwnerStyleText):
+        Call updatePropertiesModifiedState even when _updateOwnerStyleText returns early.
+
 2019-07-12  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: Elements: always show all navigation bar items, but disable those that wouldn't work
index 42cd933..87ddabf 100644 (file)
@@ -440,6 +440,7 @@ WI.CSSProperty = class CSSProperty extends WI.Object
                 const lineDelta = 0;
                 const columnDelta = 0;
                 this._ownerStyle.shiftPropertiesAfter(this, lineDelta, columnDelta, forceRemove);
+                this._ownerStyle.updatePropertiesModifiedState();
             }
             return;
         }