Bug 1586589 - Replace obsolete <textbox> comments in urlbar code. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D48675

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dão Gottwald 2019-10-09 13:18:15 +00:00
Родитель 67267e8314
Коммит 986df12c96
2 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -123,7 +123,7 @@ class UrlbarEventBufferer {
/**
* Handles DOM events.
* @param {Event} event DOM event from the <textbox>.
* @param {Event} event DOM event from the input.
*/
handleEvent(event) {
if (event.type == "blur") {
@ -141,7 +141,7 @@ class UrlbarEventBufferer {
/**
* Receives DOM events, eventually queues them up, and calls back when it's
* the right time to handle the event.
* @param {Event} event DOM event from the <textbox>.
* @param {Event} event DOM event from the input.
* @param {Function} callback to be invoked when it's the right time to handle
* the event.
*/

Просмотреть файл

@ -40,15 +40,14 @@ let getBoundsWithoutFlushing = element =>
let px = number => number.toFixed(2) + "px";
/**
* Represents the urlbar <textbox>.
* Also forwards important textbox properties and methods.
* Implements the text input part of the address bar UI.
*/
class UrlbarInput {
/**
* @param {object} options
* The initial options for UrlbarInput.
* @param {object} options.textbox
* The <textbox> element.
* The container element.
*/
constructor(options = {}) {
this.textbox = options.textbox;
@ -356,9 +355,8 @@ class UrlbarInput {
}
/**
* Passes DOM events for the textbox to the _on_<event type> methods.
* Passes DOM events to the _on_<event type> methods.
* @param {Event} event
* DOM event from the <textbox>.
*/
handleEvent(event) {
let methodName = "_on_" + event.type;