Bug 477693 - chromedir attribute needed on toolbarbuttons for pinstripe's .bookmark-item styling. r=enndeakin
authorDão Gottwald <dao@mozilla.com>
Wed, 11 Feb 2009 17:46:59 +0100
changeset 24927 319799933481383b38b034c17488ebaa82d541c0
parent 24926 c9166525952d6386a87142469056c1ec8abc1809
child 24928 171d7e2458831250fe0df889fa2b18531953294a
push id5303
push userdgottwald@mozilla.com
push dateWed, 11 Feb 2009 16:48:01 +0000
treeherdermozilla-central@319799933481 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersenndeakin
bugs477693
milestone1.9.2a1pre
Bug 477693 - chromedir attribute needed on toolbarbuttons for pinstripe's .bookmark-item styling. r=enndeakin
toolkit/content/widgets/toolbarbutton.xml
--- a/toolkit/content/widgets/toolbarbutton.xml
+++ b/toolkit/content/widgets/toolbarbutton.xml
@@ -1,22 +1,27 @@
 <?xml version="1.0"?>
 
+<!DOCTYPE bindings [
+  <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
+  %globalDTD;
+]>
+
 <bindings id="toolbarbuttonBindings"
    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="toolbarbutton" display="xul:button"
            extends="chrome://global/content/bindings/button.xml#button-base">
     <resources>
       <stylesheet src="chrome://global/skin/toolbarbutton.css"/>
     </resources>
     
-    <content>
+    <content chromedir="&locale.dir;">
       <children includes="observes|template|menupopup|panel|tooltip"/>
       <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,toolbarmode,buttonstyle"/>
       <xul:label class="toolbarbutton-text" crop="right" flex="1"
                  xbl:inherits="value=label,accesskey,crop,toolbarmode,buttonstyle"/>
     </content>
     
     <implementation implements="nsIAccessibleProvider">
       <property name="accessibleType" readonly="true">
@@ -24,17 +29,17 @@
           return Components.interfaces.nsIAccessibleProvider.XULToolbarButton;
         </getter>
       </property>
     </implementation>
   </binding>
 
   <binding id="menu" display="xul:menu" 
            extends="chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton">
-    <content>
+    <content chromedir="&locale.dir;">
       <children includes="observes|template|menupopup|panel|tooltip"/>
       <xul:image class="toolbarbutton-icon" xbl:inherits="validate,src=image,toolbarmode,buttonstyle"/>
       <xul:label class="toolbarbutton-text" crop="right" flex="1"
                  xbl:inherits="value=label,accesskey,crop,dragover-top,toolbarmode,buttonstyle"/>
       <xul:dropmarker type="menu" class="toolbarbutton-menu-dropmarker" xbl:inherits="disabled,label"/>
     </content>
   </binding>