Bug 1461793 - Remove the "popup-base" binding and import the "popup.css" file as a document stylesheet. r=bgrins

MozReview-Commit-ID: ADWsFTNPfhw

--HG--
extra : source : 4d511f7fc5b5c16fdfea91242dea6086cd57c8c3
extra : intermediate-source : 721ad06a848fa442f7f406c8bceb8d31db2aed0d
This commit is contained in:
Paolo Amadini 2018-07-09 08:59:33 +01:00
Родитель 985ecbab06
Коммит 432ba73eeb
3 изменённых файлов: 10 добавлений и 14 удалений

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

@ -172,7 +172,7 @@
/* type="arrow" overrides: remove arrow decorations for the xul <panel> wrapper */
.tooltip-xul-wrapper[type="arrow"] {
.tooltip-xul-wrapper[type="arrow"][side] {
margin: 0;
}

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

@ -15,6 +15,7 @@
@import url("chrome://global/skin/menu.css");
@import url("chrome://global/skin/menulist.css");
@import url("chrome://global/skin/notification.css");
@import url("chrome://global/skin/popup.css");
@import url("chrome://global/skin/richlistbox.css");
@import url("chrome://global/skin/splitter.css");
@import url("chrome://global/skin/toolbar.css");

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

@ -11,15 +11,7 @@
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="popup-base">
<resources>
<stylesheet src="chrome://global/skin/popup.css"/>
</resources>
</binding>
<binding id="popup"
extends="chrome://global/content/bindings/popup.xml#popup-base">
<binding id="popup">
<content>
<xul:arrowscrollbox class="popup-internal-box" flex="1" orient="vertical"
smoothscroll="false">
@ -55,8 +47,7 @@
</handlers>
</binding>
<binding id="panel"
extends="chrome://global/content/bindings/popup.xml#popup-base">
<binding id="panel">
<implementation>
<field name="_prevFocus">0</field>
</implementation>
@ -139,6 +130,11 @@
</binding>
<binding id="arrowpanel" extends="chrome://global/content/bindings/popup.xml#panel">
<resources>
<!-- Fixes an issue with the "test_arrowpanel.xul" animation on Mac, see bug 1470880. -->
<stylesheet src="data:text/css,"/>
</resources>
<content flip="both" side="top" position="bottomcenter topleft" consumeoutsideclicks="false">
<xul:vbox anonid="container" class="panel-arrowcontainer" flex="1"
xbl:inherits="side,panelopen">
@ -267,8 +263,7 @@
</handlers>
</binding>
<binding id="tooltip"
extends="chrome://global/content/bindings/popup.xml#popup-base">
<binding id="tooltip">
<content>
<children>
<xul:label class="tooltip-label" xbl:inherits="xbl:text=label" flex="1"/>