Fix bug 767830 - Remove chromedir attributes in XUL. r=philipp
authorMartin Schröder <mschroeder@mozilla.x-home.org>
Sun, 24 Jun 2012 13:54:00 +0200
changeset 12833 ec94f604e49768bf18ae47fd238204c98c24d81b
parent 12832 105f391d603dfca47e9cf9f4596e10cda9086525
child 12834 af0fb78b4713f39b3870c9e5e8a7cdc8bda9e55e
push id654
push userbugzilla@standard8.plus.com
push dateMon, 27 Aug 2012 20:27:17 +0000
treeherdercomm-beta@f9b6f18872f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp
bugs767830
Fix bug 767830 - Remove chromedir attributes in XUL. r=philipp
calendar/base/content/calendar-month-view.xml
calendar/base/content/calendar-multiday-view.xml
calendar/base/content/calendar-views.xul
calendar/base/content/today-pane.xul
calendar/base/content/widgets/calendar-widgets.xml
calendar/base/content/widgets/minimonth.xml
calendar/lightning/content/messenger-overlay-accountCentral.xul
--- a/calendar/base/content/calendar-month-view.xml
+++ b/calendar/base/content/calendar-month-view.xml
@@ -337,17 +337,16 @@
     </handlers>
   </binding>
 
   <binding id="calendar-month-base-view" extends="chrome://calendar/content/calendar-base-view.xml#calendar-base-view">
     <content style="overflow: auto;" flex="1" xbl:inherits="context,item-context">
       <xul:vbox anonid="mainbox" flex="1">
         <xul:hbox class="labeldaybox-container"
                   anonid="labeldaybox"
-                  chromedir="&locale.dir;"
                   equalsize="always"/>
 
         <xul:grid anonid="monthgrid" flex="1">
           <xul:columns anonid="monthgridcolumns" equalsize="always">
             <xul:column flex="1" class="calendar-month-view-grid-column"/>
             <xul:column flex="1" class="calendar-month-view-grid-column"/>
             <xul:column flex="1" class="calendar-month-view-grid-column"/>
             <xul:column flex="1" class="calendar-month-view-grid-column"/>
--- a/calendar/base/content/calendar-multiday-view.xml
+++ b/calendar/base/content/calendar-multiday-view.xml
@@ -2404,17 +2404,16 @@
     <content flex="1" orient="vertical" xbl:inherits="context,item-context">
       <xul:box anonid="mainbox" class="multiday-view-main-box" flex="1">
         <!-- these boxes are tricky: width or height in CSS depend on orient -->
         <xul:box anonid="labelbox" class="multiday-view-label-box">
           <xul:box anonid="labeltimespacer" class="multiday-view-label-time-spacer"/>
           <xul:box anonid="labeldaybox"
                    class="multiday-view-label-day-box"
                    flex="1"
-                   chromedir="&locale.dir;"
                    equalsize="always"/>
           <xul:box anonid="labelscrollbarspacer"/>
         </xul:box>
         <xul:box anonid="headerbox" class="multiday-view-header-box">
           <xul:box anonid="headertimespacer" class="multiday-view-header-time-spacer"/>
           <xul:box anonid="headerdaybox" class="multiday-view-header-day-box" flex="1" equalsize="always" />
           <xul:box anonid="headerscrollbarspacer"/>
         </xul:box>
--- a/calendar/base/content/calendar-views.xul
+++ b/calendar/base/content/calendar-views.xul
@@ -23,31 +23,29 @@
                <hbox flex="1" class="navigation-inner-box" align="center">
                   <!-- If you are extending a view, add attributes to these
                        nodes for your view. i.e if your view has the id
                        "foobar-view", then you need to add the attribute
                        tooltiptext-foobar="..." -->
                   <hbox pack="center">
                      <toolbarbutton id="previous-view-button"
                                     class="view-navigation-button"
-                                    chromedir="&locale.dir;"
                                     type="prev"
                                     tooltiptext-day="&calendar.navigation.prevday.tooltip;"
                                     tooltiptext-week="&calendar.navigation.prevweek.tooltip;"
                                     tooltiptext-multiweek="&calendar.navigation.prevweek.tooltip;"
                                     tooltiptext-month="&calendar.navigation.prevmonth.tooltip;"
                                     command="calendar_view_prev_command"/>
                      <toolbarbutton id="today-view-button"
                                     class="today-navigation-button"
                                     label="&calendar.today.button.label;"
                                     tooltiptext-all="&calendar.today.button.tooltip;"
                                     command="calendar_view_today_command"/>
                      <toolbarbutton id="next-view-button"
                                     class="view-navigation-button"
-                                    chromedir="&locale.dir;"
                                     type="next"
                                     tooltiptext-day="&calendar.navigation.nextday.tooltip;"
                                     tooltiptext-week="&calendar.navigation.nextweek.tooltip;"
                                     tooltiptext-multiweek="&calendar.navigation.nextweek.tooltip;"
                                     tooltiptext-month="&calendar.navigation.nextmonth.tooltip;"
                                     command="calendar_view_next_command"/>
                   </hbox>
                   <label id="intervalDescription"
--- a/calendar/base/content/today-pane.xul
+++ b/calendar/base/content/today-pane.xul
@@ -30,22 +30,20 @@
               mode="mail,calendar,task" modewidths="200,200,200" modesplitterstates="open,open,open"
               refcontrol="calendar_toggle_todaypane_command"
               broadcaster="modeBroadcaster" persist="modewidths">
       <sidebarheader align="center">
         <label id ="today-pane-header"/>
         <spacer flex="1"/>
         <modehbox mode="mail,calendar" broadcaster="modeBroadcaster">
           <toolbarbutton id="folderview-cycler-prev"
-                         chromedir="&locale.dir;"
                          dir="prev"
                          class="folderview-cycler"
                          oncommand="TodayPane.cyclePaneView(-1);"/>
           <toolbarbutton id="folderview-cycler-next"
-                         chromedir="&locale.dir;"
                          dir="next"
                          class="folderview-cycler"
                          oncommand="TodayPane.cyclePaneView(1);"/>
         </modehbox>
         <spacer id="buttonspacer"/>
         <toolbarbutton id="today-closer" class="today-closebutton"
                        oncommand="document.getElementById('today-pane-panel').setVisible(false, true, true);
                                   TodayPane.setTodayHeader();
@@ -101,27 +99,25 @@
                           <label/>
                           <label/>
                           <label/>
                         </deck>
                         <spacer id="weekspacer" flex="1"/>
                         <hbox pack="end">
                           <toolbarbutton id="previous-day-button"
                                          class="miniday-nav-buttons"
-                                         chromedir="&locale.dir;"
                                          tooltiptext="&onedaybackward.tooltip;"
                                          oncommand="TodayPane.advance(parseInt(this.getAttribute('dir')));"
                                          dir="-1"/>
                           <toolbarbutton id="today-button"
                                          class="miniday-nav-buttons"
                                          tooltiptext="&showToday.tooltip;"
                                          oncommand="TodayPane.setDay(now());"/>
                           <toolbarbutton id="next-day-button"
                                          class="miniday-nav-buttons"
-                                         chromedir="&locale.dir;"
                                          tooltiptext="&onedayforward.tooltip;"
                                          oncommand="TodayPane.advance(parseInt(this.getAttribute('dir')));"
                                          dir="1"/>
                         </hbox>
                       </hbox>
                       <hbox pack="start">
                         <deck id ="monthNameContainer" class="monthlabel">
                           <label/>
--- a/calendar/base/content/widgets/calendar-widgets.xml
+++ b/calendar/base/content/widgets/calendar-widgets.xml
@@ -514,17 +514,17 @@
 
     </handlers>
   </binding>
 
   <binding id="view-tab" extends="chrome://global/content/bindings/tabbox.xml#tab">
     <resources>
       <stylesheet src="chrome://calendar/skin/widgets/calendar-widgets.css"/>
     </resources>
-    <content chromedir="&locale.dir;">
+    <content>
       <xul:hbox class="tab-middle box-inherit" xbl:inherits="align,dir,pack,orient,selected" flex="1">
         <xul:image class="tab-icon" xbl:inherits="validate,src=image"/>
         <xul:stack>
           <xul:label class="tab-text unselected-text"
                      xbl:inherits="value=label,accesskey,crop,disabled,selected"
                      flex="1"/>
           <xul:label class="tab-text selected-text"
                      xbl:inherits="value=label,accesskey,crop,disabled,selected"
--- a/calendar/base/content/widgets/minimonth.xml
+++ b/calendar/base/content/widgets/minimonth.xml
@@ -78,24 +78,22 @@
          </xul:deck>
          <xul:toolbarbutton anonid="yearcell"
                             class="minimonth-year-name"
                             oncommand="showPopupList(event, 'years-popup')"
                             xbl:inherits="label=year"/>
          <xul:spacer flex="1"/>
          <xul:toolbarbutton anonid="back-button" class="minimonth-nav-btns" dir="-1"
                             oncommand="this.kMinimonth.advanceMonth(parseInt(this.getAttribute('dir'), 10))"
-                            chromedir="&locale.dir;"
                             tooltiptext="&onemonthbackward.tooltip;"/>
          <xul:toolbarbutton anonid="today-button" class="minimonth-nav-btns" dir="0"
                             oncommand="this.kMinimonth.value = new Date();"
                             tooltiptext="&showToday.tooltip;"/>
          <xul:toolbarbutton anonid="forward-button" class="minimonth-nav-btns" dir="1"
                             oncommand="this.kMinimonth.advanceMonth(parseInt(this.getAttribute('dir'), 10))"
-                            chromedir="&locale.dir;"
                             tooltiptext="&onemonthforward.tooltip;"/>
        <xul:popupset anonid="minmonth-popupset">
          <xul:menupopup anonid="months-popup" position="after_start"
                         onpopupshowing="event.stopPropagation();"
                         onpopuphidden="firePopupListHidden();">
            <xul:vbox>
              <xul:text class="minimonth-list" value="&month.1.name;" index="0"/>
              <xul:text class="minimonth-list" value="&month.2.name;" index="1"/>
--- a/calendar/lightning/content/messenger-overlay-accountCentral.xul
+++ b/calendar/lightning/content/messenger-overlay-accountCentral.xul
@@ -19,14 +19,13 @@
             flex="1"
             insertbefore="AccountsSection.spacer"/>
     <row id="lightning-newCalendar-row"
          class="acctCentralRow"
          insertbefore="AccountsSection.spacer">
       <hbox>
         <label class="acctCentralText acctCentralLinkText"
                value="&lightning.acctCentral.newCalendar.label;"
-               chromedir="&locale.dir;"
                onclick="window.parent.openCalendarWizard();"/>
       </hbox>
     </row>
   </rows>
 </overlay>