Bug 1584307 - Convert <xul:textbox> to <html:input> in toolkit/components/printing/content/printPageSetup.xul. r=mconley

Differential Revision: https://phabricator.services.mozilla.com/D47377

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tim Nguyen 2019-09-27 19:32:01 +00:00
Родитель 597206ae06
Коммит 84e6dec7eb
1 изменённых файлов: 8 добавлений и 6 удалений

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

@ -20,6 +20,8 @@
<html:link rel="localization" href="toolkit/printing/printDialogs.ftl"/>
</linkset>
<script src="chrome://global/content/globalOverlay.js"/>
<script src="chrome://global/content/editMenuOverlay.js"/>
<script src="chrome://global/content/printPageSetup.js"/>
<tabbox flex="1">
@ -49,7 +51,7 @@
<hbox align="center">
<label control="scalingInput"
data-l10n-id="scale"/>
<textbox id="scalingInput" size="4" oninput="checkDouble(this)"/>
<html:input id="scalingInput" size="4" oninput="checkDouble(this)"/>
<label data-l10n-id="scale-percent"/>
<separator/>
<checkbox id="shrinkToFit"
@ -73,9 +75,9 @@
<spacer flex="1"/>
<label control="topInput"
data-l10n-id="margin-top"/>
<textbox id="topInput" size="5" oninput="changeMargin(this)"/>
<html:input id="topInput" size="5" oninput="changeMargin(this)"/>
<!-- This invisible label (with same content as the visible one!) is used
to ensure that the <textbox> is centered above the page. The same
to ensure that the <input> is centered above the page. The same
technique is deployed for the bottom/left/right input fields, below. -->
<label data-l10n-id="margin-top-invisible" style="visibility: hidden;"/>
<spacer flex="1"/>
@ -86,7 +88,7 @@
<spacer flex="1"/>
<label control="leftInput"
data-l10n-id="margin-left"/>
<textbox id="leftInput" size="5" oninput="changeMargin(this)"/>
<html:input id="leftInput" size="5" oninput="changeMargin(this)"/>
<label data-l10n-id="margin-left-invisible" style="visibility: hidden;"/>
<spacer flex="1"/>
</vbox>
@ -107,7 +109,7 @@
<spacer flex="1"/>
<label control="rightInput"
data-l10n-id="margin-right"/>
<textbox id="rightInput" size="5" oninput="changeMargin(this)"/>
<html:input id="rightInput" size="5" oninput="changeMargin(this)"/>
<label data-l10n-id="margin-right-invisible" style="visibility: hidden;"/>
<spacer flex="1"/>
</vbox>
@ -117,7 +119,7 @@
<spacer flex="1"/>
<label control="bottomInput"
data-l10n-id="margin-bottom"/>
<textbox id="bottomInput" size="5" oninput="changeMargin(this)"/>
<html:input id="bottomInput" size="5" oninput="changeMargin(this)"/>
<label data-l10n-id="margin-bottom-invisible" style="visibility: hidden;"/>
<spacer flex="1"/>
</hbox>