зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1496705 - Rename _inOverflow to _overflowing. r=dao
This commit is contained in:
Родитель
28aa04a6d1
Коммит
504ea44902
|
@ -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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче