Bug 1496705 - Rename _inOverflow to _overflowing. r=dao

This commit is contained in:
Abdelrhman Ahmed 2018-10-08 16:46:18 +02:00
Родитель 28aa04a6d1
Коммит 504ea44902
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -195,7 +195,7 @@ class UrlbarInput {
// Private methods below.
_updateTextOverflow() {
if (!this._inOverflow) {
if (!this._overflowing) {
this.removeAttribute("textoverflow");
return;
}
@ -203,7 +203,7 @@ class UrlbarInput {
this.window.promiseDocumentFlushed(() => {
// Check overflow again to ensure it didn't change in the meantime.
let input = this.inputField;
if (input && this._inOverflow) {
if (input && this._overflowing) {
let side = input.scrollLeft &&
input.scrollLeft == input.scrollLeftMax ? "start" : "end";
this.setAttribute("textoverflow", side);
@ -212,7 +212,7 @@ class UrlbarInput {
}
_updateUrlTooltip() {
if (this.focused || !this._inOverflow) {
if (this.focused || !this._overflowing) {
this.inputField.removeAttribute("title");
} else {
this.inputField.setAttribute("title", this.value);
@ -392,7 +392,7 @@ class UrlbarInput {
if (targetIsPlaceholder) {
return;
}
this._inOverflow = true;
this._overflowing = true;
this._updateTextOverflow();
}
@ -404,7 +404,7 @@ class UrlbarInput {
if (targetIsPlaceholder) {
return;
}
this._inOverflow = false;
this._overflowing = false;
this._updateTextOverflow();