Web Inspector: Styles: enabledProperties don't get invalidated after removing property
authornvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 23:34:00 +0000 (23:34 +0000)
committernvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2019 23:34:00 +0000 (23:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196038

Reviewed by Timothy Hatcher.

* UserInterface/Models/CSSStyleDeclaration.js:
(WI.CSSStyleDeclaration.prototype.shiftPropertiesAfter):

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

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

index b40a53c..4aad850 100644 (file)
@@ -1,3 +1,13 @@
+2019-03-20  Nikita Vasilyev  <nvasilyev@apple.com>
+
+        Web Inspector: Styles: enabledProperties don't get invalidated after removing property
+        https://bugs.webkit.org/show_bug.cgi?id=196038
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Models/CSSStyleDeclaration.js:
+        (WI.CSSStyleDeclaration.prototype.shiftPropertiesAfter):
+
 2019-03-20  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: DOM: include window as part of any event listener chain
index e277488..74b694f 100644 (file)
@@ -413,6 +413,7 @@ WI.CSSStyleDeclaration = class CSSStyleDeclaration extends WI.Object
             this._properties.splice(realIndex, 1);
 
         // Invalidate cached properties.
+        this._enabledProperties = null;
         this._visibleProperties = null;
     }