Bug 478416, replace chromedir attribute with :moz-locale-dir pseudoclass, r=neil,dao,dbaron,sr=dbaron
authorNeil Deakin <neil@mozilla.com>
Wed, 29 Jul 2009 14:33:53 -0400
changeset 25441 2e10b64089b58ec9e1a08aaea83dc3a60252befb
parent 25440 b45f32f2b5395f32ee64ad06f2fda5739240049c
child 25442 679e001ea679851ef0cb9206db759c5a75e8cb77
push id1725
push userclokep@gmail.com
push dateMon, 19 Sep 2016 17:35:08 +0000
treeherdercomm-beta@6ead1abf3817 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil, dao, dbaron, dbaron
bugs478416
Bug 478416, replace chromedir attribute with :moz-locale-dir pseudoclass, r=neil,dao,dbaron,sr=dbaron
suite/common/helpviewer/help.xul
suite/common/helpviewer/helpContextOverlay.xul
--- a/suite/common/helpviewer/help.xul
+++ b/suite/common/helpviewer/help.xul
@@ -41,18 +41,16 @@
 <?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
 
 <?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
 <!DOCTYPE window [
     <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
     %brandDTD;
     <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
     %helpDTD;
-    <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
-    %globalDTD;
 ]>
 
 <window id="help"
         windowtype="mozilla:help"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         width="700"
         height="550"
 #ifdef XP_WIN
@@ -148,30 +146,28 @@
   </keyset>
   <stringbundle id="bundle_viewZoom"/>
   <stringbundle id="findBundle"
                 src="chrome://global/locale/finddialog.properties"/>
   <stringbundle id="bundle_help"
                 src="chrome://help/locale/help.properties"/>
 
     <toolbox id="help-toolbox" class="toolbox-top">
-      <toolbar id="HelpToolbar" class="chromeclass-toolbar" chromedir="&locale.dir;">
+      <toolbar id="HelpToolbar" class="chromeclass-toolbar">
         <toolbarbutton id="help-back-button" type="menu-button"
                        label="&backButton.label;"
                        oncommand="if (event.target == this) goBack(); else gotoHistoryIndex(event);"
                        observes="canGoBack" context="backMenu"
-                       tooltiptext="&backButton.tooltip;"
-                       chromedir="&locale.dir;">
+                       tooltiptext="&backButton.tooltip;">
           <menupopup context="" onpopupshowing="createBackMenu(event);"/>
         </toolbarbutton>
         <toolbarbutton id="help-forward-button" type="menu-button"
                        oncommand="if (event.target == this) goForward(); else gotoHistoryIndex(event);"
                        tooltiptext="&forwardButton.tooltip;"
-                       observes="canGoForward"
-                       chromedir="&locale.dir;">
+                       observes="canGoForward">
           <menupopup context="" onpopupshowing="createForwardMenu(event);"/>
         </toolbarbutton>
         <toolbarbutton id="help-home-button"
                        tooltiptext="&homeButton.tooltip;"
                        command="Help:Home"/>
         <toolbarseparator/>
         <toolbarbutton id="help-print-button"
                        label="&printButton.label;"
--- a/suite/common/helpviewer/helpContextOverlay.xul
+++ b/suite/common/helpviewer/helpContextOverlay.xul
@@ -33,37 +33,33 @@
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
 <!DOCTYPE overlay [
     <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
     %helpDTD;
-    <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
-    %globalDTD;
 ]>
 <overlay id="contentAreaContextOverlay"
          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
 # Help Window's right-click menu
   <popupset id="contentAreaContextSet">
     <popup id="contentAreaContextMenu"
            onpopupshowing="goUpdateCommand('cmd_copy')">
       <menuitem id="context-back"
                 label="&backButton.label;"
                 accesskey="&backButton.accesskey;"
                 observes="canGoBack"
-                chromedir="&locale.dir;"
                 oncommand="goBack()"/>
       <menuitem id="context-forward"
                 label="&forwardButton.label;"
                 accesskey="&forwardButton.accesskey;"
                 observes="canGoForward"
-                chromedir="&locale.dir;"
                 oncommand="goForward()"/>
       <menuseparator/>
       <menuitem id="context-copy"
                 label="&copyCmd.label;"
                 accesskey="&copyCmd.accesskey;"
                 command="cmd_copy"
                 disabled="true"/>
       <menuitem id="context-selectall"