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

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

Issue 2458383003: DevTools: Remove ghost text from FilteredListWidget (Closed)
Patch Set: 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 5bccf6fa1966d3b9bcf28da25e82a5408e03df8a..7acfe4f32cf83ebb7acd17afe0542092006f0774 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -552,7 +552,7 @@ WebInspector.TextPrompt.prototype = {
var text = this.text();
this._element.textContent = text.substring(0, this._prefixRange.startColumn) + this._currentSuggestion + text.substring(this._prefixRange.endColumn);
- this._setDOMSelection(this._prefixRange.startColumn + this._currentSuggestion.length, this._prefixRange.startColumn + this._currentSuggestion.length);
+ this.setDOMSelection(this._prefixRange.startColumn + this._currentSuggestion.length, this._prefixRange.startColumn + this._currentSuggestion.length);
this.clearAutocomplete();
this.dispatchEventToListeners(WebInspector.TextPrompt.Events.ItemAccepted);
@@ -564,7 +564,7 @@ WebInspector.TextPrompt.prototype = {
* @param {number} startColumn
* @param {number} endColumn
*/
- _setDOMSelection: function(startColumn, endColumn)
+ setDOMSelection: function(startColumn, endColumn)
{
this._element.normalize();
var node = this._element.childNodes[0];

Powered by Google App Engine
This is Rietveld 408576698