+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
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;
shorthands[shorthand.name] = shorthand.value;
}
- var text = payload.cssText;
-
var inheritedPropertyCount = 0;
var properties = [];
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) {