Bug 1474171 - Remove <resources> from XML files in common/. r=jorgk

--HG--
extra : rebase_source : b43c44d5420eb01d83aba76401e8a36e17aef2ef
This commit is contained in:
Richard Marti 2018-07-09 18:39:10 +02:00
Родитель b9c0159cc9
Коммит 7eb3b93110
13 изменённых файлов: 44 добавлений и 101 удалений

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

@ -23,17 +23,6 @@
<binding id="datetimepicker-base" <binding id="datetimepicker-base"
extends="chrome://global/content/bindings/general.xml#basecontrol"> extends="chrome://global/content/bindings/general.xml#basecontrol">
<resources>
<stylesheet src="chrome://global/content/textbox.css"/>
<stylesheet src="chrome://global/skin/textbox.css"/>
<stylesheet src="chrome://global/skin/dropmarker.css"/>
#ifdef MOZ_SUITE
<stylesheet src="chrome://communicator/skin/datetimepicker.css"/>
#else
<stylesheet src="chrome://messenger/skin/datetimepicker.css"/>
#endif
</resources>
<content align="center"> <content align="center">
<xul:hbox class="datetimepicker-input-box" align="center" <xul:hbox class="datetimepicker-input-box" align="center"
xbl:inherits="context,disabled,readonly"> xbl:inherits="context,disabled,readonly">

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

@ -11,10 +11,6 @@
<binding id="numberbox" extends="chrome://messenger/content/textbox.xml#textbox"> <binding id="numberbox" extends="chrome://messenger/content/textbox.xml#textbox">
<resources>
<stylesheet src="chrome://messenger/skin/numberbox.css"/>
</resources>
<content> <content>
<xul:hbox class="textbox-input-box numberbox-input-box" flex="1" xbl:inherits="context,disabled,focused"> <xul:hbox class="textbox-input-box numberbox-input-box" flex="1" xbl:inherits="context,disabled,focused">
<html:input class="numberbox-input textbox-input" anonid="input" <html:input class="numberbox-input textbox-input" anonid="input"

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

@ -592,9 +592,6 @@
<binding id="prefwindow" <binding id="prefwindow"
extends="chrome://global/content/bindings/dialog.xml#dialog"> extends="chrome://global/content/bindings/dialog.xml#dialog">
<resources>
<stylesheet src="chrome://global/skin/preferences.css"/>
</resources>
<content dlgbuttons="accept,cancel" persist="lastSelected screenX screenY" <content dlgbuttons="accept,cancel" persist="lastSelected screenX screenY"
closebuttonlabel="&preferencesCloseButton.label;" closebuttonlabel="&preferencesCloseButton.label;"
closebuttonaccesskey="&preferencesCloseButton.accesskey;" closebuttonaccesskey="&preferencesCloseButton.accesskey;"
@ -1168,9 +1165,6 @@
</binding> </binding>
<binding id="prefpane"> <binding id="prefpane">
<resources>
<stylesheet src="chrome://global/skin/preferences.css"/>
</resources>
<content> <content>
<xul:vbox class="content-box" xbl:inherits="flex"> <xul:vbox class="content-box" xbl:inherits="flex">
<children/> <children/>
@ -1382,9 +1376,6 @@
<binding id="panebutton" role="xul:listitem" <binding id="panebutton" role="xul:listitem"
extends="chrome://global/content/bindings/radio.xml#radio"> extends="chrome://global/content/bindings/radio.xml#radio">
<resources>
<stylesheet src="chrome://global/skin/preferences.css"/>
</resources>
<content> <content>
<xul:image class="paneButtonIcon" xbl:inherits="src"/> <xul:image class="paneButtonIcon" xbl:inherits="src"/>
<xul:label class="paneButtonLabel" xbl:inherits="value=label"/> <xul:label class="paneButtonLabel" xbl:inherits="value=label"/>

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

@ -12,14 +12,6 @@
<binding id="spinbuttons" <binding id="spinbuttons"
extends="chrome://global/content/bindings/general.xml#basecontrol"> extends="chrome://global/content/bindings/general.xml#basecontrol">
<resources>
#ifdef MOZ_SUITE
<stylesheet src="chrome://communicator/skin/spinbuttons.css"/>
#else
<stylesheet src="chrome://messenger/skin/spinbuttons.css"/>
#endif
</resources>
<content> <content>
<xul:vbox class="spinbuttons-box" flex="1"> <xul:vbox class="spinbuttons-box" flex="1">
<xul:button anonid="increaseButton" type="repeat" flex="1" <xul:button anonid="increaseButton" type="repeat" flex="1"

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

@ -18,10 +18,6 @@
xmlns:xbl="http://www.mozilla.org/xbl"> xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="textbox" extends="xul:box" role="xul:textbox"> <binding id="textbox" extends="xul:box" role="xul:textbox">
<resources>
<stylesheet src="chrome://global/content/textbox.css"/>
<stylesheet src="chrome://global/skin/textbox.css"/>
</resources>
<content> <content>
<children/> <children/>

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

@ -9,18 +9,7 @@
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl"> xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="toolbar-base"> <binding id="toolbox">
<resources>
<stylesheet src="chrome://global/skin/toolbar.css"/>
</resources>
</binding>
<binding id="toolbox"
#ifdef MOZ_SUITE
extends="chrome://communicator/content/bindings/toolbar.xml#toolbar-base">
#else
extends="chrome://messenger/content/toolbar.xml#toolbar-base">
#endif
<implementation> <implementation>
<field name="palette"> <field name="palette">
null null
@ -98,12 +87,7 @@
</implementation> </implementation>
</binding> </binding>
<binding id="toolbar" role="xul:toolbar" <binding id="toolbar" role="xul:toolbar">
#ifdef MOZ_SUITE
extends="chrome://communicator/content/bindings/toolbar.xml#toolbar-base">
#else
extends="chrome://messenger/content/toolbar.xml#toolbar-base">
#endif
<implementation> <implementation>
<property name="toolbarName" <property name="toolbarName"
onget="return this.getAttribute('toolbarname');" onget="return this.getAttribute('toolbarname');"
@ -536,13 +520,7 @@
</implementation> </implementation>
</binding> </binding>
<binding id="menubar" role="xul:menubar" <binding id="menubar" role="xul:menubar" display="xul:menubar">
#ifdef MOZ_SUITE
extends="chrome://communicator/content/bindings/toolbar.xml#toolbar-base"
#else
extends="chrome://messenger/content/toolbar.xml#toolbar-base"
#endif
display="xul:menubar">
<implementation> <implementation>
<field name="_active">false</field> <field name="_active">false</field>
<field name="_statusbar">null</field> <field name="_statusbar">null</field>
@ -586,21 +564,7 @@
</handlers> </handlers>
</binding> </binding>
<binding id="toolbardecoration" role="xul:toolbarseparator" <binding id="toolbarpaletteitem" display="xul:button">
#ifdef MOZ_SUITE
extends="chrome://communicator/content/bindings/toolbar.xml#toolbar-base">
#else
extends="chrome://messenger/content/toolbar.xml#toolbar-base">
#endif
</binding>
<binding id="toolbarpaletteitem"
#ifdef MOZ_SUITE
extends="chrome://communicator/content/bindings/toolbar.xml#toolbar-base"
#else
extends="chrome://messenger/content/toolbar.xml#toolbar-base"
#endif
display="xul:button">
<content> <content>
<xul:hbox class="toolbarpaletteitem-box" flex="1" xbl:inherits="type,place"> <xul:hbox class="toolbarpaletteitem-box" flex="1" xbl:inherits="type,place">
<children/> <children/>
@ -638,9 +602,6 @@
<binding id="menu-button" display="xul:menu" <binding id="menu-button" display="xul:menu"
extends="chrome://global/content/bindings/button.xml#menu-button-base"> extends="chrome://global/content/bindings/button.xml#menu-button-base">
<resources>
<stylesheet src="chrome://global/skin/toolbarbutton.css"/>
</resources>
<content> <content>
<children includes="observes|template|menupopup|panel|tooltip"/> <children includes="observes|template|menupopup|panel|tooltip"/>

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

@ -2,6 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@import url("chrome://global/content/textbox.css");
@import url("chrome://global/skin/textbox.css");
@import url("chrome://messenger/skin/numberbox.css");
@import url("chrome://messenger/skin/spinbuttons.css");
@import url("chrome://messenger/skin/datetimepicker.css");
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
toolbox { toolbox {

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

@ -37,7 +37,7 @@ messenger.jar:
content/messenger/listbox.xml (../../common/bindings/listbox.xml) content/messenger/listbox.xml (../../common/bindings/listbox.xml)
content/messenger/numberbox.xml (../../common/bindings/numberbox.xml) content/messenger/numberbox.xml (../../common/bindings/numberbox.xml)
content/messenger/generalBindings.xml (../../common/bindings/generalBindings.xml) content/messenger/generalBindings.xml (../../common/bindings/generalBindings.xml)
* content/messenger/spinbuttons.xml (../../common/bindings/spinbuttons.xml) content/messenger/spinbuttons.xml (../../common/bindings/spinbuttons.xml)
* content/messenger/textbox.xml (../../common/bindings/textbox.xml) * content/messenger/textbox.xml (../../common/bindings/textbox.xml)
* content/messenger/toolbar.xml (../../common/bindings/toolbar.xml) * content/messenger/toolbar.xml (../../common/bindings/toolbar.xml)
content/messenger/attachmentList.css (content/attachmentList.css) content/messenger/attachmentList.css (content/attachmentList.css)

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

@ -214,7 +214,7 @@ menulist:-moz-locale-dir(rtl) > .menulist-label-box {
color: inherit !important; color: inherit !important;
} }
.textbox-addressingWidget, textbox.textbox-addressingWidget,
.dummy-row-cell:not(:first-child) { .dummy-row-cell:not(:first-child) {
padding: 4px 2px !important; padding: 4px 2px !important;
padding-inline-start: 5px !important; padding-inline-start: 5px !important;
@ -228,8 +228,8 @@ menulist:-moz-locale-dir(rtl) > .menulist-label-box {
border-bottom-color: transparent; border-bottom-color: transparent;
} }
.textbox-addressingWidget[focused="true"], textbox.textbox-addressingWidget[focused="true"],
.textbox-addressingWidget:hover { textbox.textbox-addressingWidget:hover {
background-color: -moz-field; background-color: -moz-field;
border-color: var(--toolbarbutton-hover-bordercolor) !important; border-color: var(--toolbarbutton-hover-bordercolor) !important;
} }

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

@ -279,7 +279,7 @@ toolbar[nowindowdrag="true"] {
color: inherit !important; color: inherit !important;
} }
.textbox-addressingWidget, textbox.textbox-addressingWidget,
.dummy-row-cell:not(:first-child) { .dummy-row-cell:not(:first-child) {
border: 1px solid transparent !important; border: 1px solid transparent !important;
border-bottom-color: #C6C6C6 !important; border-bottom-color: #C6C6C6 !important;
@ -293,8 +293,8 @@ toolbar[nowindowdrag="true"] {
transition: border .2s, background-color .2s; transition: border .2s, background-color .2s;
} }
.textbox-addressingWidget[focused="true"], textbox.textbox-addressingWidget[focused="true"],
.textbox-addressingWidget:hover { textbox.textbox-addressingWidget:hover {
background-color: white; background-color: white;
background-image: none; background-image: none;
border-color: #C6C6C6 !important; border-color: #C6C6C6 !important;

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

@ -173,7 +173,7 @@ findbar,
#msgIdentity, #msgIdentity,
#msgSubject, #msgSubject,
.textbox-addressingWidget, textbox.textbox-addressingWidget,
.dummy-row-cell:not(:first-child) { .dummy-row-cell:not(:first-child) {
border-bottom-color: var(--composer-header-border-color) !important; border-bottom-color: var(--composer-header-border-color) !important;
color: var(--chrome-color); color: var(--chrome-color);
@ -183,8 +183,8 @@ findbar,
#msgIdentity:focus, #msgIdentity:focus,
#msgSubject:hover, #msgSubject:hover,
#msgSubject[focused="true"], #msgSubject[focused="true"],
.textbox-addressingWidget:hover, textbox.textbox-addressingWidget:hover,
.textbox-addressingWidget[focused="true"] { textbox.textbox-addressingWidget[focused="true"] {
background-color: var(--lwt-toolbar-field-background-color); background-color: var(--lwt-toolbar-field-background-color);
color: var(--lwt-toolbar-field-color); color: var(--lwt-toolbar-field-color);
border-color: var(--lwt-toolbar-field-border-color) !important; border-color: var(--lwt-toolbar-field-border-color) !important;
@ -192,7 +192,7 @@ findbar,
#msgIdentity ::-moz-selection, #msgIdentity ::-moz-selection,
#msgSubject ::-moz-selection, #msgSubject ::-moz-selection,
.textbox-addressingWidget ::-moz-selection { textbox.textbox-addressingWidget ::-moz-selection {
background-color: var(--chrome-selection-background-color); background-color: var(--chrome-selection-background-color);
color: var(--chrome-selection-color); color: var(--chrome-selection-color);
} }

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

@ -174,7 +174,7 @@
padding-bottom: 2px; padding-bottom: 2px;
} }
.textbox-addressingWidget, textbox.textbox-addressingWidget,
.dummy-row-cell:not(:first-child) { .dummy-row-cell:not(:first-child) {
margin-bottom: 2px !important; margin-bottom: 2px !important;
padding: 2px !important; padding: 2px !important;
@ -184,14 +184,14 @@
} }
@media (-moz-windows-default-theme: 0) { @media (-moz-windows-default-theme: 0) {
.textbox-addressingWidget, textbox.textbox-addressingWidget,
.dummy-row-cell:not(:first-child) { .dummy-row-cell:not(:first-child) {
border-bottom-color: ThreeDShadow !important; border-bottom-color: ThreeDShadow !important;
margin-inline-end: 1px !important; margin-inline-end: 1px !important;
} }
.textbox-addressingWidget:hover, textbox.textbox-addressingWidget:hover,
.textbox-addressingWidget[focused="true"] { textbox.textbox-addressingWidget[focused="true"] {
background-color: -moz-field; background-color: -moz-field;
border-color: ThreeDShadow !important; border-color: ThreeDShadow !important;
} }
@ -667,18 +667,19 @@ toolbar:not(:-moz-lwtheme) {
/* ::::: addressing widget ::::: */ /* ::::: addressing widget ::::: */
@media (-moz-windows-default-theme) { @media (-moz-windows-default-theme) {
.textbox-addressingWidget, textbox.textbox-addressingWidget,
.dummy-row-cell:not(:first-child) { .dummy-row-cell:not(:first-child) {
border-bottom-color: #a9b7c9 !important; border-bottom-color: #a9b7c9 !important;
} }
.textbox-addressingWidget:hover, textbox.textbox-addressingWidget:hover,
.textbox-addressingWidget[focused="true"] { textbox.textbox-addressingWidget[focused="true"] {
background-color: -moz-field; background-color: -moz-field;
border-color: #a9b7c9 !important; border-color: #a9b7c9 !important;
} }
menulist { menulist,
menulist[disabled="true"] {
color: inherit; color: inherit;
border: 1px solid; border: 1px solid;
background: var(--toolbarbutton-hover-background); background: var(--toolbarbutton-hover-background);
@ -688,6 +689,10 @@ toolbar:not(:-moz-lwtheme) {
transition-duration: 150ms; transition-duration: 150ms;
} }
menulist[disabled="true"] {
opacity: 0.5;
}
menulist:not([disabled="true"]):not([open="true"]):hover { menulist:not([disabled="true"]):not([open="true"]):hover {
background: var(--toolbarbutton-active-background); background: var(--toolbarbutton-active-background);
border-color: var(--toolbarbutton-active-bordercolor); border-color: var(--toolbarbutton-active-bordercolor);
@ -699,7 +704,8 @@ toolbar:not(:-moz-lwtheme) {
box-shadow: var(--toolbarbutton-active-boxshadow); box-shadow: var(--toolbarbutton-active-boxshadow);
} }
.menulist-dropmarker { .menulist-dropmarker,
.menulist-dropmarker[disabled="true"] {
-moz-appearance: none; -moz-appearance: none;
list-style-image: url("chrome://messenger/skin/icons/toolbarbutton-arrow.svg"); list-style-image: url("chrome://messenger/skin/icons/toolbarbutton-arrow.svg");
-moz-context-properties: fill; -moz-context-properties: fill;

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

@ -485,7 +485,8 @@ treechildren::-moz-tree-cell-text(imapdeleted) {
} }
@media (-moz-windows-default-theme) { @media (-moz-windows-default-theme) {
menulist { menulist,
menulist[disabled="true"] {
-moz-appearance: none; -moz-appearance: none;
min-height: 24px; min-height: 24px;
color: inherit; color: inherit;
@ -499,6 +500,10 @@ treechildren::-moz-tree-cell-text(imapdeleted) {
transition-duration: 150ms; transition-duration: 150ms;
} }
menulist[disabled="true"] {
opacity: 0.5;
}
menulist:not([disabled="true"]):not([open="true"]):hover { menulist:not([disabled="true"]):not([open="true"]):hover {
background: var(--toolbarbutton-active-background); background: var(--toolbarbutton-active-background);
border-color: var(--toolbarbutton-active-bordercolor); border-color: var(--toolbarbutton-active-bordercolor);
@ -514,7 +519,8 @@ treechildren::-moz-tree-cell-text(imapdeleted) {
opacity: .6; opacity: .6;
} }
.menulist-dropmarker { .menulist-dropmarker,
.menulist-dropmarker[disabled="true"] {
-moz-appearance: none; -moz-appearance: none;
list-style-image: url("chrome://messenger/skin/icons/toolbarbutton-arrow.svg"); list-style-image: url("chrome://messenger/skin/icons/toolbarbutton-arrow.svg");
-moz-context-properties: fill; -moz-context-properties: fill;