Bug 500971 - Remove obsolete tabs-closebutton binding. r=enn
authorDão Gottwald <dao@mozilla.com>
Sun, 28 Jun 2009 18:04:47 +0200
changeset 29792 22ed91cb3441
parent 29791 48161673b084
child 29793 4851a9d9a60c
push id106
push userhsivonen@iki.fi
push dateSun, 28 Jun 2009 17:44:42 +0000
reviewersenn
bugs500971
milestone1.9.2a1pre
Bug 500971 - Remove obsolete tabs-closebutton binding. r=enn
toolkit/content/widgets/tabbox.xml
toolkit/content/xul.css
--- a/toolkit/content/widgets/tabbox.xml
+++ b/toolkit/content/widgets/tabbox.xml
@@ -521,39 +521,16 @@
             this.removeChild(remove);
           return remove;
         ]]>
         </body>
       </method>
     </implementation>
   </binding>
 
-  <!-- 
-  XXXben - this looks like something added specifically for tabbrowser.
-           if it turns out no one uses this that can't easily be evangelized to
-           use their own roll-your-own binding, then we should get rid of this
-           to tighten up the toolkit api. This binding made obsolete in Firefox
-           by 308396. 
-  -->
-  <binding id="tabs-closebutton" 
-           extends="chrome://global/content/bindings/tabbox.xml#tabs">
-    <content>
-      <xul:hbox flex="1" style="min-width: 1px; overflow: -moz-hidden-unscrollable;">
-        <children/>
-        <xul:spacer class="tabs-right" flex="1"/>
-      </xul:hbox>
-      <xul:stack>
-        <xul:spacer class="tabs-right"/>
-        <xul:hbox class="tabs-closebutton-box" align="center" pack="end">
-          <xul:toolbarbutton ondblclick="event.stopPropagation();" class="tabs-closebutton close-button" xbl:inherits="disabled=disableclose,oncommand=onclosetab"/>
-        </xul:hbox>
-      </xul:stack>
-    </content>
-  </binding>
-
   <binding id="tabpanels"
            extends="chrome://global/content/bindings/tabbox.xml#tab-base">
     <implementation>
 
       <field name="_selectedPanel">this.childNodes.item(this.selectedIndex)</field>
 
       <property name="selectedIndex">
         <getter>
--- a/toolkit/content/xul.css
+++ b/toolkit/content/xul.css
@@ -601,27 +601,16 @@ tabbox {
   -moz-box-orient: vertical;
 }
 
 tabs {
   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs");
   -moz-box-orient: horizontal;
 }
 
-/**
- * XXXben - this looks like something added specifically for tabbrowser.
- *          if it turns out no one uses this that can't easily be evangelized to
- *          use their own roll-your-own binding, then we should get rid of this
- *          to tighten up the toolkit api. This binding made obsolete in Firefox
- *          by 308396. 
- */
-tabs[closebutton="true"] {
-  -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs-closebutton");
-}
-
 tab {
   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab");
   -moz-box-align: center;
   -moz-box-pack: center;
 }
 
 tab[selected="true"] {
   -moz-user-focus: normal;