зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1371293 - Fix remaining instances of no-multi-spaces after upgrading to ESLint 4. r=mossop
MozReview-Commit-ID: EL6qI2VDyT1 --HG-- extra : rebase_source : df939b81e6f879bfe97ae70f4596d60682d6beb6
This commit is contained in:
Родитель
ba94a5128c
Коммит
3619944268
|
@ -1814,11 +1814,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|||
this._margins = val;
|
||||
|
||||
if (val) {
|
||||
/* eslint-disable no-multi-spaces */
|
||||
let paddingInCSS =
|
||||
3 // .autocomplete-richlistbox padding-left/right
|
||||
+ 6 // .ac-site-icon margin-inline-start
|
||||
+ 16 // .ac-site-icon width
|
||||
+ 6; // .ac-site-icon margin-inline-end
|
||||
/* eslint-enable no-multi-spaces */
|
||||
let actualVal = Math.round(val.start) - paddingInCSS;
|
||||
let actualValEnd = Math.round(val.end);
|
||||
this.style.setProperty("--item-padding-start", actualVal + "px");
|
||||
|
|
|
@ -264,7 +264,7 @@
|
|||
// or decrement our currently viewed page.
|
||||
this.mPageTextBox.valueNumber += aDirection;
|
||||
navType = nsIWebBrowserPrint.PRINTPREVIEW_GOTO_PAGENUM;
|
||||
pageNum = this.mPageTextBox.value; // TODO: back to valueNumber?
|
||||
pageNum = this.mPageTextBox.value; // TODO: back to valueNumber?
|
||||
} else {
|
||||
// We're going to a specific page (aPageNum)
|
||||
navType = nsIWebBrowserPrint.PRINTPREVIEW_GOTO_PAGENUM;
|
||||
|
|
|
@ -184,7 +184,7 @@
|
|||
|
||||
if (event.keyCode || event.charCode <= 32 || event.altKey ||
|
||||
event.ctrlKey || event.metaKey)
|
||||
return; // No printable char pressed, not a potential accesskey
|
||||
return; // No printable char pressed, not a potential accesskey
|
||||
|
||||
// Possible accesskey pressed
|
||||
var charPressedLower = String.fromCharCode(event.charCode).toLowerCase();
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
<![CDATA[
|
||||
if (this.hasAttribute("defaultButton"))
|
||||
return this.getAttribute("defaultButton");
|
||||
return "accept"; // default to the accept button
|
||||
return "accept"; // default to the accept button
|
||||
]]>
|
||||
</getter>
|
||||
<setter>
|
||||
|
|
Загрузка…
Ссылка в новой задаче