Web Inspector: remove unused parameter in _parseStylePropertyPayload
authornvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2019 23:37:51 +0000 (23:37 +0000)
committernvasilyev@apple.com <nvasilyev@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Feb 2019 23:37:51 +0000 (23:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194642

Reviewed by Devin Rousso.

* UserInterface/Models/DOMNodeStyles.js:
(WI.DOMNodeStyles.prototype._parseStyleDeclarationPayload):
The `styleText` parameter was never used

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

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

index 880666f..868805a 100644 (file)
@@ -1,3 +1,14 @@
+2019-02-15  Nikita Vasilyev  <nvasilyev@apple.com>
+
+        Web Inspector: remove unused parameter in _parseStylePropertyPayload
+        https://bugs.webkit.org/show_bug.cgi?id=194642
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Models/DOMNodeStyles.js:
+        (WI.DOMNodeStyles.prototype._parseStyleDeclarationPayload):
+        The `styleText` parameter was never used
+
 2019-02-15  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: Canvas: all actions after an offscreen path modification are marked as offscreen path errors
index c784507..80b2bb8 100644 (file)
@@ -506,7 +506,7 @@ WI.DOMNodeStyles = class DOMNodeStyles extends WI.Object
         return new WI.TextRange(payload.startLine, payload.startColumn, payload.endLine, payload.endColumn);
     }
 
-    _parseStylePropertyPayload(payload, index, styleDeclaration, styleText)
+    _parseStylePropertyPayload(payload, index, styleDeclaration)
     {
         var text = payload.text || "";
         var name = payload.name;
@@ -639,8 +639,6 @@ WI.DOMNodeStyles = class DOMNodeStyles extends WI.Object
             shorthands[shorthand.name] = shorthand.value;
         }
 
-        var text = payload.cssText;
-
         var inheritedPropertyCount = 0;
 
         var properties = [];
@@ -650,10 +648,11 @@ WI.DOMNodeStyles = class DOMNodeStyles extends WI.Object
             if (inherited && WI.CSSProperty.isInheritedPropertyName(propertyPayload.name))
                 ++inheritedPropertyCount;
 
-            var property = this._parseStylePropertyPayload(propertyPayload, i, styleDeclaration, text);
+            let property = this._parseStylePropertyPayload(propertyPayload, i, styleDeclaration);
             properties.push(property);
         }
 
+        let text = payload.cssText;
         var styleSheetTextRange = this._parseSourceRangePayload(payload.range);
 
         if (styleDeclaration) {