Load "menu.css" as a UA stylesheet.
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Mon, 21 May 2018 10:30:13 +0100
changeset 1517182 e9e0b749fad168ba98c804d45ee55587b0fe74b8
parent 1517181 244e73c35cd19a1f362cbe7323cfd281225170b3
child 1517183 e067d24b00750fb927ba60ca634f7b9d7e598454
push id272907
push userpaolo.mozmail@amadzone.org
push dateMon, 21 May 2018 09:34:44 +0000
treeherdertry@889cec5b8a15 [default view] [failures only]
milestone62.0a1
Load "menu.css" as a UA stylesheet.
toolkit/content/components.css
toolkit/content/widgets/menu.xml
--- a/toolkit/content/components.css
+++ b/toolkit/content/components.css
@@ -3,12 +3,12 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /* ===== components.css =================================================
   == Styles ported from XBL <resources>, loaded as UA styles in every XUL doc
   ======================================================================= */
 
 @import url("chrome://global/skin/dropmarker.css");
 @import url("chrome://global/skin/groupbox.css");
-/*@import url("chrome://global/skin/menu.css");*/
+@import url("chrome://global/skin/menu.css");
 @import url("chrome://global/skin/menulist.css");
 @import url("chrome://global/skin/toolbar.css");
 @import url("chrome://global/skin/splitter.css");
--- a/toolkit/content/widgets/menu.xml
+++ b/toolkit/content/widgets/menu.xml
@@ -6,20 +6,16 @@
 
 <bindings id="menuitemBindings"
    xmlns="http://www.mozilla.org/xbl"
    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:xbl="http://www.mozilla.org/xbl">
 
   <binding id="menuitem-base"
            extends="chrome://global/content/bindings/general.xml#basetext">
-    <resources>
-      <stylesheet src="chrome://global/skin/menu.css"/>
-    </resources>
-
     <implementation implements="nsIDOMXULSelectControlItemElement, nsIDOMXULContainerItemElement">
       <property name="value" onset="this.setAttribute('value', val); return val;"
                              onget="return this.getAttribute('value');"/>
       <!-- nsIDOMXULSelectControlItemElement -->
       <property name="selected" readonly="true"
                 onget="return this.getAttribute('selected') == 'true';"/>
       <property name="control" readonly="true">
         <getter>