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