зеркало из 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.
|
// 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();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче