Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
index d5492c6ad3d960b075018923be879930be00870b..929774546621cce369abc3e854ecb2fbc9799c2b 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeElement.js
@@ -1343,7 +1343,7 @@ Elements.ElementsTreeElement = class extends UI.TreeElement {
/**
* @param {string} text
- * @return {!{text: string, entityRanges: !Array.<!Common.SourceRange>}}
+ * @return {!{text: string, entityRanges: !Array.<!TextUtils.SourceRange>}}
*/
_convertWhitespaceToEntities(text) {
var result = '';
@@ -1565,13 +1565,13 @@ Elements.ElementsTreeElement = class extends UI.TreeElement {
var match = regexObject.exec(text);
var matchRanges = [];
while (match) {
- matchRanges.push(new Common.SourceRange(match.index, match[0].length));
+ matchRanges.push(new TextUtils.SourceRange(match.index, match[0].length));
match = regexObject.exec(text);
}
// Fall back for XPath, etc. matches.
if (!matchRanges.length)
- matchRanges.push(new Common.SourceRange(0, text.length));
+ matchRanges.push(new TextUtils.SourceRange(0, text.length));
this._highlightResult = [];
UI.highlightSearchResults(this.listItemElement, matchRanges, this._highlightResult);

Powered by Google App Engine
This is Rietveld 408576698