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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.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/ui/TextPrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
index 6ea5c4771499bd197906f72b4267c00761e4e5b5..0e7e7c48b370d8c2ef4d22eee1af7a25993a0e9e 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -487,7 +487,7 @@ UI.TextPrompt = class extends Common.Object {
var beforeRange = this._createRange();
beforeRange.setStart(this._element, 0);
beforeRange.setEnd(fullWordRange.startContainer, fullWordRange.startOffset);
- this._queryRange = new Common.TextRange(
+ this._queryRange = new TextUtils.TextRange(
0, beforeRange.toString().length, 0, beforeRange.toString().length + fullWordRange.toString().length);
var shouldSelect = !this._disableDefaultSuggestionForEmptyInput || !!this.text();

Powered by Google App Engine
This is Rietveld 408576698