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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.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/sources/FileBasedSearchResultsPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js b/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js
index e0bf4d8eff3398052f02c4a6dd8a50e3e620d3a1..52af930e8607ac0b1b46f4a051fa8a704d07a883 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/FileBasedSearchResultsPane.js
@@ -180,7 +180,7 @@ Sources.FileBasedSearchResultsPane.FileTreeElement = class extends UI.TreeElemen
/**
* @param {string} lineContent
- * @param {!Array.<!Common.SourceRange>} matchRanges
+ * @param {!Array.<!TextUtils.SourceRange>} matchRanges
*/
_createContentSpan(lineContent, matchRanges) {
var contentSpan = createElement('span');
@@ -193,14 +193,14 @@ Sources.FileBasedSearchResultsPane.FileTreeElement = class extends UI.TreeElemen
/**
* @param {string} lineContent
* @param {!RegExp} regex
- * @return {!Array.<!Common.SourceRange>}
+ * @return {!Array.<!TextUtils.SourceRange>}
*/
_regexMatchRanges(lineContent, regex) {
regex.lastIndex = 0;
var match;
var matchRanges = [];
while ((regex.lastIndex < lineContent.length) && (match = regex.exec(lineContent)))
- matchRanges.push(new Common.SourceRange(match.index, match[0].length));
+ matchRanges.push(new TextUtils.SourceRange(match.index, match[0].length));
return matchRanges;
}

Powered by Google App Engine
This is Rietveld 408576698