Bug 1422386 - Remove toolbardecoration, toolbar, and toolbar-base binding, r=Paolo

The only purpose of these bindings was to insert a stylesheet, which has been
moved to be included in toolkit/content/components.css.

MozReview-Commit-ID: 23jqkIrbVvi

--HG--
extra : rebase_source : 8d13f7a8afa730207d40e1457e36ec51331c4ea7
This commit is contained in:
Timothy Guan-tin Chien 2018-02-13 22:12:18 +08:00
parent 73e88fa686
commit b073441b39
6 changed files with 7 additions and 39 deletions

View File

@ -9,9 +9,6 @@
xmlns:xbl="http://www.mozilla.org/xbl"> xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="toolbar"> <binding id="toolbar">
<resources>
<stylesheet src="chrome://global/skin/toolbar.css"/>
</resources>
<implementation> <implementation>
<field name="overflowedDuringConstruction">null</field> <field name="overflowedDuringConstruction">null</field>

View File

@ -15,8 +15,7 @@
xmlns="http://www.mozilla.org/xbl" xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="printpreviewtoolbar" <binding id="printpreviewtoolbar">
extends="chrome://global/content/bindings/toolbar.xml#toolbar">
<resources> <resources>
<stylesheet src="chrome://global/skin/printPreview.css"/> <stylesheet src="chrome://global/skin/printPreview.css"/>
</resources> </resources>

View File

@ -7,3 +7,4 @@
======================================================================= */ ======================================================================= */
@import url("chrome://global/skin/menu.css"); @import url("chrome://global/skin/menu.css");
@import url("chrome://global/skin/toolbar.css");

View File

@ -153,8 +153,7 @@
</handlers> </handlers>
</binding> </binding>
<binding id="findbar" <binding id="findbar">
extends="chrome://global/content/bindings/toolbar.xml#toolbar">
<resources> <resources>
<stylesheet src="chrome://global/skin/findBar.css"/> <stylesheet src="chrome://global/skin/findBar.css"/>
</resources> </resources>

View File

@ -9,17 +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="toolbar-menubar-autohide">
<resources>
<stylesheet src="chrome://global/skin/toolbar.css"/>
</resources>
</binding>
<binding id="toolbar"
extends="chrome://global/content/bindings/toolbar.xml#toolbar-base" />
<binding id="toolbar-menubar-autohide"
extends="chrome://global/content/bindings/toolbar.xml#toolbar">
<implementation> <implementation>
<constructor> <constructor>
this._setInactive(); this._setInactive();
@ -114,8 +104,7 @@
</handlers> </handlers>
</binding> </binding>
<binding id="toolbar-drag" <binding id="toolbar-drag">
extends="chrome://global/content/bindings/toolbar.xml#toolbar">
<implementation> <implementation>
<field name="_dragBindingAlive">true</field> <field name="_dragBindingAlive">true</field>
<constructor><![CDATA[ <constructor><![CDATA[
@ -136,8 +125,7 @@
</implementation> </implementation>
</binding> </binding>
<binding id="menubar" <binding id="menubar" extends="xul:menubar">
extends="chrome://global/content/bindings/toolbar.xml#toolbar-base" 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>
@ -181,10 +169,7 @@
</handlers> </handlers>
</binding> </binding>
<binding id="toolbardecoration" extends="chrome://global/content/bindings/toolbar.xml#toolbar-base"> <binding id="toolbarpaletteitem" extends="xul:button">
</binding>
<binding id="toolbarpaletteitem" extends="chrome://global/content/bindings/toolbar.xml#toolbar-base" 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/>

View File

@ -286,10 +286,6 @@ toolbox {
-moz-box-orient: vertical; -moz-box-orient: vertical;
} }
toolbar {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
}
toolbar[customizing="true"][collapsed="true"] { toolbar[customizing="true"][collapsed="true"] {
/* Some apps, e.g. Firefox, use 'collapsed' to hide toolbars. /* Some apps, e.g. Firefox, use 'collapsed' to hide toolbars.
Override it while customizing. */ Override it while customizing. */
@ -321,16 +317,7 @@ toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true
} }
%endif %endif
toolbarseparator {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
}
toolbarspacer {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
}
toolbarspring { toolbarspring {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
-moz-box-flex: 1000; -moz-box-flex: 1000;
} }