Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r228214 - Web Inspector: Rename String.prototype.trimEnd to avo…
…id conflicts with native trimEnd https://bugs.webkit.org/show_bug.cgi?id=182545 Reviewed by Brian Burg. Source/WebInspectorUI: Rename: - trimEnd to truncateEnd - trimMiddle to truncateMiddle * UserInterface/Base/Utilities.js: (String.prototype.trimMiddle): Deleted. (String.prototype.trimEnd): Deleted. (String.prototype.truncateMiddle): Added. (String.prototype.truncateEnd): Added. Use strict mode. Scrict mode allows `this` to be a primitive (a string, in our case). In non-strict mode, `this` is always an object. Without the strict mode, "a".truncateEnd(42) !== "a", because truncateEnd returns a string object. * UserInterface/Views/DOMTreeElement.js: (WI.DOMTreeElement.prototype._buildAttributeDOM): * UserInterface/Views/DOMTreeElementPathComponent.js: (WI.DOMTreeElementPathComponent): * UserInterface/Views/SearchResultTreeElement.js: Remove an obvious comment. (WI.SearchResultTreeElement.truncateAndHighlightTitle): * UserInterface/Views/SpreadsheetStyleProperty.js: (WI.SpreadsheetStyleProperty.prototype._renderValue): LayoutTests: * inspector/unit-tests/string-utilities-expected.txt: * inspector/unit-tests/string-utilities.html:
- Loading branch information
1 parent
64ff09f
commit 76e4c0b
Showing
9 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters