diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js index fd5c652638febf..865876d5f57fc4 100644 --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js @@ -323,7 +323,7 @@ WebInspector.ConsoleView.prototype = { _executionContextChanged: function() { - this._prompt.clearAutoComplete(); + this._prompt.clearAutocomplete(); if (!this._showAllMessagesCheckbox.checked()) this._updateMessageList(); }, @@ -370,7 +370,7 @@ WebInspector.ConsoleView.prototype = { _hidePromptSuggestBox: function() { - this._prompt.clearAutoComplete(); + this._prompt.clearAutocomplete(); }, _scheduleViewportRefresh: function() @@ -795,7 +795,7 @@ WebInspector.ConsoleView.prototype = { event.consume(true); - this._prompt.clearAutoComplete(); + this._prompt.clearAutocomplete(); var str = this._prompt.text(); if (!str.length) diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js index 956bf637089dca..cbfc64373b79e6 100644 --- a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js +++ b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseQueryView.js @@ -100,7 +100,7 @@ WebInspector.DatabaseQueryView.prototype = { if (this._selectionTimeout) clearTimeout(this._selectionTimeout); - this._prompt.clearAutoComplete(); + this._prompt.clearAutocomplete(); /** * @this {WebInspector.DatabaseQueryView} @@ -128,7 +128,7 @@ WebInspector.DatabaseQueryView.prototype = { { event.consume(true); - this._prompt.clearAutoComplete(); + this._prompt.clearAutocomplete(); var query = this._prompt.text(); if (!query.length) 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 e7882c1ba6505c..2701d7c6358e2a 100644 --- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js +++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js @@ -121,7 +121,7 @@ WebInspector.TextPrompt.prototype = { this._boundOnInput = this.onInput.bind(this); this._boundOnMouseWheel = this.onMouseWheel.bind(this); this._boundSelectStart = this._selectStart.bind(this); - this._boundClearAutocomplete = this.clearAutoComplete.bind(this); + this._boundClearAutocomplete = this.clearAutocomplete.bind(this); this._proxyElement = element.ownerDocument.createElement("span"); var shadowRoot = WebInspector.createShadowRootWithCoreStyles(this._proxyElement, "ui/textPrompt.css"); this._contentElement = shadowRoot.createChild("div"); @@ -182,7 +182,7 @@ WebInspector.TextPrompt.prototype = { */ setText: function(x) { - this.clearAutoComplete(); + this.clearAutocomplete(); if (!x) { // Append a break element instead of setting textContent to make sure the selection is inside the prompt. this._element.removeChildren(); @@ -215,7 +215,7 @@ WebInspector.TextPrompt.prototype = { _removeFromElement: function() { - this.clearAutoComplete(); + this.clearAutocomplete(); this._element.removeEventListener("keydown", this._boundOnKeyDown, false); this._element.removeEventListener("input", this._boundOnInput, false); this._element.removeEventListener("selectstart", this._boundSelectStart, false); @@ -260,7 +260,7 @@ WebInspector.TextPrompt.prototype = { if (this._selectionTimeout) clearTimeout(this._selectionTimeout); - this.clearAutoComplete(); + this.clearAutocomplete(); /** * @this {WebInspector.TextPrompt} @@ -282,7 +282,7 @@ WebInspector.TextPrompt.prototype = { */ _updateAutoComplete: function(force) { - this.clearAutoComplete(); + this.clearAutocomplete(); this.autoCompleteSoon(force); }, @@ -311,18 +311,18 @@ WebInspector.TextPrompt.prototype = { break; case "ArrowLeft": case "Home": - this.clearAutoComplete(); + this.clearAutocomplete(); break; case "ArrowRight": case "End": if (this.isCaretAtEndOfPrompt()) handled = this.acceptAutoComplete(); else - this.clearAutoComplete(); + this.clearAutocomplete(); break; case "Escape": if (this.isSuggestBoxVisible()) { - this.clearAutoComplete(); + this.clearAutocomplete(); handled = true; } break; @@ -372,7 +372,7 @@ WebInspector.TextPrompt.prototype = { return result; }, - clearAutoComplete: function() + clearAutocomplete: function() { if (this.isSuggestBoxVisible()) this._suggestBox.hide(); @@ -407,7 +407,7 @@ WebInspector.TextPrompt.prototype = { */ complete: function(force, reverse) { - this.clearAutoComplete(); + this.clearAutocomplete(); var selection = this._element.getComponentSelection(); var selectionRange = selection && selection.rangeCount ? selection.getRangeAt(0) : null; if (!selectionRange) @@ -426,7 +426,7 @@ WebInspector.TextPrompt.prototype = { shouldExit = true; } if (shouldExit) { - this.clearAutoComplete(); + this.clearAutocomplete(); return; } @@ -523,7 +523,7 @@ WebInspector.TextPrompt.prototype = { } if (!annotatedCompletions.length) { - this.clearAutoComplete(); + this.clearAutocomplete(); return; } @@ -666,7 +666,7 @@ WebInspector.TextPrompt.prototype = { selection.addRange(finalSelectionRange); if (!prefixAccepted) { - this.clearAutoComplete(); + this.clearAutocomplete(); this.dispatchEventToListeners(WebInspector.TextPrompt.Events.ItemAccepted); } else this.autoCompleteSoon(true); @@ -886,7 +886,7 @@ WebInspector.TextPromptWithHistory.prototype = { if (newText !== undefined) { event.consume(true); this.setText(newText); - this.clearAutoComplete(); + this.clearAutocomplete(); if (isPrevious) { var firstNewlineIndex = this.text().indexOf("\n");