Bug 1594331 - Port bug 1592369: rewrite consumers of the deprecated "left" and "right" align values to "start" and "end". r=khushil

* align="left" -> align="start"
* align="right" -> align="end"
* setAttribute("align", "left") -> setAttribute("align", "start")
* setAttribute("align", "right") -> setAttribute("align", "end")

```
grep -rl 'align="left"' --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor . | xargs sed -i 's/align="left"/align="start"/g'
grep -rl 'align="right"' --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor . | xargs sed -i 's/align="right"/align="end"/g'
grep -rl 'setAttribute("align", "left")' --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor . | xargs sed -i 's/setAttribute("align", "left")/setAttribute("align", "start")/g'
grep -rl 'setAttribute("align", "right")' --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor . | xargs sed -i 's/setAttribute("align", "right")/setAttribute("align", "end")/g'
hg revert calendar/import-export/calMonthGridPrinter.html calendar/import-export/calWeekPrinter.html
```

--HG--
extra : rebase_source : 1f44c5d7bdb94ff3253a1f49aee4281460c76ce7
This commit is contained in:
Magnus Melin 2019-11-06 11:44:14 +02:00
Родитель 54a6add4cf
Коммит 9299f55a8a
12 изменённых файлов: 17 добавлений и 17 удалений

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

@ -140,7 +140,7 @@
<stack class="calendar-event-box-container"
flex="1">
<hbox class="calendar-event-details">
<vbox align="left"
<vbox align="start"
flex="1">
<label class="event-name-label"
crop="end"

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

@ -300,7 +300,7 @@
</vbox>
<label class="calendar-month-day-box-item-label"></label>
<vbox class="event-name-label-container"
align="left" flex="1">
align="start" flex="1">
<label class="event-name-label"
crop="end"
flex="1"

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

@ -386,7 +386,7 @@ function createTooltipHeaderLabel(text) {
let labelCell = document.createElementNS("http://www.w3.org/1999/xhtml", "th");
labelCell.setAttribute("class", "tooltipHeaderLabel");
labelCell.textContent = text;
labelCell.setAttribute("align", "right");
labelCell.setAttribute("align", "end");
return labelCell;
}

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

@ -131,7 +131,7 @@
</vbox>
<vbox>
<hbox flex="1" align="center">
<label align="left" value="&pixels.label;"/>
<label align="start" value="&pixels.label;"/>
</hbox>
<hbox flex="1" align="center">
<label value="&tablePxBetwCells.label;"/>

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

@ -86,7 +86,7 @@
</stack>
</hbox>
<hbox class="otr-container"
align="left"
align="start"
valign="middle"
hidden="true">
<label class="otr-label"

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

@ -50,7 +50,7 @@
<wizardpage id="selectProfile" pageid="selectProfile" label="&selectProfile.title;"
next="importItems">
<label control="profiles">&selectProfile.label;</label>
<radiogroup id="profiles" align="left"/>
<radiogroup id="profiles" align="start"/>
</wizardpage>
<wizardpage id="importItems" pageid="importItems" label="&importItems.title;"
@ -58,7 +58,7 @@
oncommand="MigrationWizard.onImportItemCommand();">
<description>&importItems.label;</description>
<vbox id="dataSources" style="overflow: auto; -moz-appearance: listbox" align="left" flex="1"/>
<vbox id="dataSources" style="overflow: auto; -moz-appearance: listbox" align="start" flex="1"/>
</wizardpage>
<wizardpage id="migrating" pageid="migrating" label="&migrating.title;"
@ -66,7 +66,7 @@
<description>&migrating.label;</description>
<separator class="thin"/>
<vbox id="migratingItems" class="indent" style="overflow: auto;" flex="1" align="left"/>
<vbox id="migratingItems" class="indent" style="overflow: auto;" flex="1" align="start"/>
<separator class="thin"/>
<hbox>
@ -79,7 +79,7 @@
<description>&done.label;</description>
<separator class="thin"/>
<vbox id="doneItems" class="indent" style="overflow: auto;" align="left"/>
<vbox id="doneItems" class="indent" style="overflow: auto;" align="start"/>
</wizardpage>
</wizard>

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

@ -67,7 +67,7 @@
</tree>
</vbox>
<vbox>
<hbox class="actionButtons" align="left" flex="1">
<hbox class="actionButtons" align="start" flex="1">
<button id="removePermission" disabled="true"
accesskey="&removepermission.accesskey;"
icon="remove" label="&removepermission.label;"
@ -78,7 +78,7 @@
oncommand="gPermissionManager.onAllPermissionsDeleted();"/>
</hbox>
<spacer flex="1"/>
<hbox class="actionButtons" align="right" flex="1">
<hbox class="actionButtons" align="end" flex="1">
<button oncommand="window.close();" icon="close"
label="&button.cancel.label;" accesskey="&button.cancel.accesskey;" />
<button id="btnApplyChanges" oncommand="gPermissionManager.onApplyChanges();" icon="save"

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

@ -19,7 +19,7 @@
onload="mailViewOnLoad();"
onunload="mailViewOnUnLoad();"
buttons="accept,cancel"
buttonalign="right"
buttonalign="end"
windowtype="mailnews:mailview"
title="&mailViewSetupTitle.label;"
style="width: 52em; height: 22em;"

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

@ -35,7 +35,7 @@
<checkbox id="workOffline" label="&workOffline.label;" accesskey="&workOffline.accesskey;"/>
</vbox>
<separator class="thin"/>
<hbox align="right">
<hbox align="end">
<button id="select" label="&selectButton.label;" accesskey="&selectButton.accesskey;"
oncommand="OnSelect();"/>
</hbox>

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

@ -39,12 +39,12 @@
<separator class="thin" hidefor="movemail,pop3,nntp,none"/>
<hbox hidefor="movemail,pop3,nntp,none" align="right">
<hbox hidefor="movemail,pop3,nntp,none" align="end">
<button label="&offlineImapAdvancedOffline.label;" accesskey="&offlineImapAdvancedOffline.accesskey;"
oncommand="onClickSelect()" id="selectImapFoldersButton" class="selectForOfflineUseButton"/>
</hbox>
<hbox hidefor="movemail,pop3,imap,none" align="right">
<hbox hidefor="movemail,pop3,imap,none" align="end">
<button label="&offlineSelectNntp.label;" accesskey="&offlineSelectNntp.accesskey;"
oncommand="onClickSelect()" id="selectNewsgroupsButton" class="selectForOfflineUseButton"/>
</hbox>

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

@ -247,7 +247,7 @@
prefstring="mail.server.%serverkey%.trash_folder_name"/>
<hbox align="center" hidefor="pop3,nntp,movemail">
<label value="&deleteMessagePrefix.label;" align="left"
<label value="&deleteMessagePrefix.label;" align="start"
control="imap.deleteModel"/>
</hbox>
<vbox>

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

@ -55,7 +55,7 @@
src="chrome://branding/locale/brand.properties"/>
<vbox flex="1" id="contentPane">
<hbox align="right">
<hbox align="end">
<label is="text-link" id="learnMore"
crop="end"
value="&learnMore.label;"