Changeset 269201 in webkit
- Timestamp:
- Oct 30, 2020 11:06:27 AM (21 months ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/SpreadsheetStyleProperty.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r269175 r269201 1 2020-10-30 Nikita Vasilyev <nvasilyev@apple.com> 2 3 Web Inspector: Extra closing parenthesis added after var in styles panel 4 https://bugs.webkit.org/show_bug.cgi?id=218295 5 <rdar://problem/70771314> 6 7 Reviewed by Devin Rousso. 8 9 * UserInterface/Views/SpreadsheetStyleProperty.js: 10 (WI.SpreadsheetStyleProperty.prototype._addVariableTokens): 11 Remove `contents.push(token)` which was adding `)`. The closing parenthesis that was already 12 included in rawTokens above. 13 Drive-by: rawTokens.slice() should never include `i` as the 2nd argument. `i` is an index of an item 14 in the `tokens` - a different array. 15 1 16 2020-10-29 Federico Bucchi <fbucchi@apple.com> 2 17 -
trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetStyleProperty.js
r268929 r269201 815 815 contents.pushAll(rawTokens.slice(variableNameIndex + 1, fallbackStartIndex)); 816 816 817 let fallbackTokens = rawTokens.slice(fallbackStartIndex , i);817 let fallbackTokens = rawTokens.slice(fallbackStartIndex); 818 818 fallbackTokens = this._addBoxShadowTokens(fallbackTokens); 819 819 fallbackTokens = this._addGradientTokens(fallbackTokens); … … 824 824 contents.pushAll(fallbackTokens); 825 825 } else 826 contents.pushAll(rawTokens.slice(variableNameIndex + 1, i)); 827 contents.push(token); 826 contents.pushAll(rawTokens.slice(variableNameIndex + 1)); 828 827 829 828 let text = rawTokens.reduce((accumulator, token) => accumulator + token.value, "");
Note: See TracChangeset
for help on using the changeset viewer.