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

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

Issue 2390933003: DevTools: Stop SuggestBox from flickering in TextPrompt (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2701d7c6358e2a4a5ea1780ea049095d8881a8d0..8a4162b2526074e7605978c3c92f6e9d27aeb6c5 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -282,7 +282,7 @@ WebInspector.TextPrompt.prototype = {
*/
_updateAutoComplete: function(force)
{
- this.clearAutocomplete();
+ this._clearAutocompleteElement();
this.autoCompleteSoon(force);
},
@@ -376,7 +376,11 @@ WebInspector.TextPrompt.prototype = {
{
if (this.isSuggestBoxVisible())
this._suggestBox.hide();
+ this._clearAutocompleteElement();
+ },
+ _clearAutocompleteElement: function()
+ {
if (this._completeTimeout) {
clearTimeout(this._completeTimeout);
delete this._completeTimeout;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698