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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js

Issue 2469153003: DevTools: Remove ghost text from FilteredListWidget (Closed)
Patch Set: Exit test on rejected promise Created 4 years, 1 month 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 4866d067f770a1ad358e81b5c6a4a224ab8d1a97..0006c61d61a386cd70401ac3f62a93aee6e80f7a 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -526,7 +526,7 @@ WebInspector.TextPrompt = class extends WebInspector.Object {
var text = this.text();
this._element.textContent = text.substring(0, this._prefixRange.startColumn) + this._currentSuggestion +
text.substring(this._prefixRange.endColumn);
- this._setDOMSelection(
+ this.setDOMSelection(
this._prefixRange.startColumn + this._currentSuggestion.length,
this._prefixRange.startColumn + this._currentSuggestion.length);
@@ -540,7 +540,7 @@ WebInspector.TextPrompt = class extends WebInspector.Object {
* @param {number} startColumn
* @param {number} endColumn
*/
- _setDOMSelection(startColumn, endColumn) {
+ setDOMSelection(startColumn, endColumn) {
this._element.normalize();
var node = this._element.childNodes[0];
if (!node || node === this._ghostTextElement)

Powered by Google App Engine
This is Rietveld 408576698