Bug 1073968 Restore compact menulists to the Modern theme r=rsx11m a=Ratty
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Thu, 20 Nov 2014 00:19:17 +0000
changeset 25566 1d0cf76d033677648e278ed3c384f8420d274516
parent 25565 6d2d158a7f3e3600c3faba972cde68c007a77f99
child 25567 82727a0ffd305fd2a26914a7a8bee479c4759510
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrsx11m, Ratty
bugs1073968
Bug 1073968 Restore compact menulists to the Modern theme r=rsx11m a=Ratty CLOSED TREE
suite/themes/modern/global/global.css
suite/themes/modern/global/globalBindings.xml
--- a/suite/themes/modern/global/global.css
+++ b/suite/themes/modern/global/global.css
@@ -13,17 +13,17 @@
 
 /* ::::: XBL bindings ::::: */
 
 toolbarbutton[type="menu-button"] {
   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-menu-button");
 }
 
 .menulist-compact {
-  -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-compact");
+  -moz-binding: url("chrome://global/skin/globalBindings.xml#menulist-compact");
 }
 
 /* ::::: root elements ::::: */
 
 window, 
 page,
 dialog,
 wizard,
--- a/suite/themes/modern/global/globalBindings.xml
+++ b/suite/themes/modern/global/globalBindings.xml
@@ -7,16 +7,25 @@
 <bindings id="globalBindings"
           xmlns="http://www.mozilla.org/xbl"
           xmlns:html="http://www.w3.org/1999/xhtml"
           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
           xmlns:xbl="http://www.mozilla.org/xbl">
 
   <!-- :::/ widgets \ ::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
 
+  <binding id="menulist-compact" display="xul:menu"
+           extends="chrome://global/content/bindings/menulist.xml#menulist">
+    <content sizetopopup="false">
+      <xul:dropmarker class="menulist-dropmarker" type="menu" xbl:inherits="disabled,open"/>
+      <xul:label class="menulist-label" xbl:inherits="value=label,crop,accesskey" crop="right" flex="1"/>
+      <children includes="menupopup"/>
+    </content>
+  </binding>
+
   <binding id="toolbar-menu-button" display="xul:menu"
            extends="chrome://global/content/bindings/toolbarbutton.xml#menu-button">
     <content>
       <children includes="observes|template|menupopup|tooltip"/>
       <xul:stack class="box-inherit toolbarbutton-menubutton-stack" flex="1">
         <xul:toolbarbutton class="box-inherit toolbarbutton-menubutton-button"
              anonid="button" allowevents="true"
              xbl:inherits="disabled,image,label,crop,accesskey,command,