Bug 682037 - Remove unnecessary window-width/height classes in browser.xul [r=stechz]
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 25 Aug 2011 13:44:07 -0700
changeset 75923 53362b3e8894cc891921be6c29b447c87cf5484a
parent 75922 f097100df8aa0aae62fde3bc4556f1232718bcde
child 75924 0edb2653d8fc7b88d54cd14aa2f03dbf5165fa87
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersstechz
bugs682037
milestone9.0a1
Bug 682037 - Remove unnecessary window-width/height classes in browser.xul [r=stechz]
mobile/chrome/content/browser.xul
--- a/mobile/chrome/content/browser.xul
+++ b/mobile/chrome/content/browser.xul
@@ -208,18 +208,18 @@
                 onclosereloadtab="this._container.removeTab(this)"/>
           <hbox id="tabs-controls">
             <toolbarbutton id="newtab-button" class="button-control" command="cmd_newTab"/>
           </hbox>
         </vbox>
       </vbox>
 
       <!-- Page Area -->
-      <stack class="window-width window-height">
-        <scrollbox id="page-scrollbox" class="window-width window-height">
+      <stack>
+        <scrollbox id="page-scrollbox">
           <vbox>
             <!-- Main Toolbar -->
             <box id="toolbar-container" class="panel-dark toolbar-height">
               <box id="toolbar-moveable-container" observes="bcast_uidiscovery">
                 <toolbar id="toolbar-main" class="panel-dark window-width" observes="bcast_urlbarState">
                   <toolbarbutton id="tool-back2" class="tool-back button-actionbar" command="cmd_back"/>
                   <toolbarbutton id="tool-forward2" class="tool-forward button-actionbar" command="cmd_forward"/>
                   <toolbarbutton id="tool-tabs" class="button-actionbar" command="cmd_showTabs"/>
@@ -279,17 +279,17 @@
                 <!-- vertical scrollbar -->
                 <box id="vertical-scroller" class="scroller" orient="vertical" end="2" top="0"/>
               </stack>
             </vbox>
           </vbox>
         </scrollbox>
 
         <!-- popup for content navigator helper -->
-        <vbox id="content-navigator" class="window-width" top="0">
+        <vbox id="content-navigator" top="0">
           <textbox id="find-helper-textbox" class="search-bar content-navigator-item" oncommand="FindHelperUI.search(this.value)" oninput="FindHelperUI.updateCommands(this.value);" type="search"/>
         </vbox>
 
         <!-- horizontal scrollbar -->
         <box id="horizontal-scroller" class="scroller" orient="horizontal" left="0" bottom="2"/>
       </stack>
 
       <!-- Right toolbar -->
@@ -311,17 +311,17 @@
     </scrollbox>
 
     <!-- Form Helper suggestions helper popup -->
     <arrowbox id="form-helper-suggestions-container" flex="1" hidden="true" offset="0" top="0" left="0">
       <arrowscrollbox id="form-helper-suggestions" align="center" flex="1" orient="horizontal" onclick="FormHelperUI.doAutoComplete(event.target);"/>
     </arrowbox>
 
     <!-- popup for site identity information -->
-    <arrowbox id="identity-container" hidden="true" class="window-width" mode="unknownIdentity" offset="18" flex="1">
+    <arrowbox id="identity-container" hidden="true" mode="unknownIdentity" offset="18" flex="1">
       <hbox id="identity-popup-container" flex="1" align="top">
         <image id="identity-popup-icon"/>
         <vbox id="identity-popup-content-box" flex="1">
           <hbox flex="1">
             <label id="identity-popup-connectedToLabel" value="&identity.connectedTo2;"/>
             <label id="identity-popup-connectedToLabel2" flex="1">&identity.unverifiedsite2;</label>
             <description id="identity-popup-content-host" flex="1"/>
           </hbox>
@@ -333,17 +333,17 @@
           <description id="identity-popup-content-verifier"/>
         </vbox>
         <vbox align="center" pack="start">
           <image id="identity-popup-encryption-icon"/>
           <description id="identity-popup-encryption-label"/>
         </vbox>
       </hbox>
 
-      <hbox id="pageactions-container" class="window-width" hidden="true">
+      <hbox id="pageactions-container" hidden="true">
 #ifndef ANDROID
         <pageaction id="pageaction-findinpage" title="&pageactions.findInPage;"
           onclick="FindHelperUI.show();"/>
 #ifdef NS_PRINTING
         <pageaction id="pageaction-saveas" title="&pageactions.saveas.pdf;"
           onclick="PageActions.savePageAsPDF();"/>
 #endif
         <pageaction id="pageaction-share" title="&pageactions.share.page;"
@@ -373,17 +373,17 @@
 #ifdef ANDROID
         <richlistitem class="action-button" id="bookmark-popup-shortcut" onclick="BookmarkPopup.addToHome();">
           <label value="&bookmarkShortcut.label;"/>
         </richlistitem>
 #endif
       </richlistbox>
     </arrowbox>
 
-    <box id="bookmark-container" class="perm-modal-block window-width window-height" hidden="true">
+    <box id="bookmark-container" class="perm-modal-block" hidden="true">
       <dialog id="bookmark-dialog" class="content-dialog" flex="1">
         <hbox id="bookmark-form-title" class="prompt-title">
           <description>&editBookmarkDialog.title;</description>
         </hbox>
         <separator id="bookmark-form-line" class="prompt-line"/>
         <scrollbox id="bookmark-form" align="start" class="prompt-message" flex="1"/>
         <hbox id="bookmark-form-buttons" pack="center" class="prompt-buttons">
           <button label="&editBookmarkDone.label;" class="prompt-button" oncommand="BookmarkHelper.save();"/>
@@ -543,17 +543,17 @@
       <placelist id="bookmarks-items" type="bookmarks" onopen="BookmarkList.openLink(event);" onhide="BrowserUI.updateStar();" flex="1" hidden="true"/>
       <historylist id="history-items" onopen="HistoryList.openLink(event);" flex="1" hidden="true"/>
 #ifdef MOZ_SERVICES_SYNC
       <remotetabslist id="remotetabs-items" onopen="RemoteTabsList.openLink(event)" flex="1" hidden="true"/>
 #endif
     </vbox>
 
 #ifdef MOZ_SERVICES_SYNC
-    <box id="syncsetup-container" class="perm-modal-block window-width window-height" hidden="true">
+    <box id="syncsetup-container" class="perm-modal-block" hidden="true">
       <dialog id="syncsetup-dialog" class="content-dialog" flex="1">
         <hbox class="prompt-title">
           <description>&sync.setup.title;</description>
         </hbox>
         <separator class="prompt-line"/>
         <vbox id="syncsetup-simple" class="syncsetup-page" flex="1">
           <scrollbox id="sync-message" class="prompt-message" orient="vertical" flex="1">
             <description class="syncsetup-desc syncsetup-center" flex="1">&sync.setup.jpake;</description>
@@ -601,29 +601,29 @@
       <hbox id="search-engines-list" class="action-buttons" flex="1"/>
     </arrowbox>
 
     <arrowbox id="newtab-popup" class="arrowbox-dark" hidden="true" onclick="NewTabPopup.selectTab()" align="center" start="0">
       <label/>
     </arrowbox>
 
     <!-- options dialog for select form field -->
-    <vbox id="select-container" class="window-width window-height context-block" top="0" left="0" hidden="true" flex="1">
+    <vbox id="select-container" class="context-block" hidden="true">
       <vbox id="select-popup" class="dialog-dark">
         <hbox pack="center">
           <label id="select-title" class="options-title" align="center" crop="center" flex="1"/>
         </hbox>
         <scrollbox id="select-commands" onclick="if (event.target != this) SelectHelperUI.selectByIndex(event.target.optionIndex);" orient="vertical" flex="1"/>
         <hbox pack="center">
           <button label="&selectHelper.done;" oncommand="SelectHelperUI.hide();"/>
         </hbox>
       </vbox>
     </vbox>
 
-    <hbox id="context-container" class="window-width window-height context-block" top="0" left="0" hidden="true" flex="1">
+    <hbox id="context-container" class="context-block" hidden="true">
       <vbox id="context-popup" class="dialog-dark">
         <hbox id="context-header">
           <label id="context-hint" crop="center" flex="1"/>
         </hbox>
         <richlistbox id="context-commands" onclick="ContextHelper.hide();" flex="1">
           <richlistitem class="context-command" id="context-copy" type="copy" onclick="ContextCommands.copy();">
             <label value="&copy.label;"/>
           </richlistitem>
@@ -688,17 +688,17 @@
 #endif
         </richlistbox>
       </vbox>
     </hbox>
 
     <toolbarbutton id="selectionhandle-start" label="^" left="0" top="0" hidden="true"/>
     <toolbarbutton id="selectionhandle-end" label="^" left="0" top="0" hidden="true"/>
 
-    <hbox id="menulist-container" class="window-width window-height context-block" top="0" left="0" hidden="true" flex="1">
+    <hbox id="menulist-container" class="context-block" hidden="true">
       <vbox id="menulist-popup" class="dialog-dark">
         <label id="menulist-title" class="options-title" crop="center" flex="1"/>
         <richlistbox id="menulist-commands" class="action-buttons" onclick="if (event.target != this) MenuListHelperUI.selectByIndex(this.selectedIndex);" flex="1"/>
       </vbox>
     </hbox>
 
     <!-- alerts for content -->
     <hbox id="alerts-container" hidden="true" align="start" bottom="0" onclick="AlertsHelper.click(event);">