Bug 631491 - toolbar's iconsize attribute is not updated correctly after switching themes. r+a=dolske
authorDão Gottwald <dao@mozilla.com>
Thu, 03 Mar 2011 11:35:18 +0100
changeset 63313 0d3e9943f463
parent 63312 39982a2ba344
child 63314 82912051f423
push idunknown
push userunknown
push dateunknown
bugs631491
milestone2.0b13pre
Bug 631491 - toolbar's iconsize attribute is not updated correctly after switching themes. r+a=dolske
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -3648,23 +3648,20 @@ function retrieveToolbarIconsizesFromThe
     if (aToolbar.localName != "toolbar")
       return;
 
     // The theme indicates that it wants to override the "iconsize" attribute
     // by specifying a special value for the "counter-reset" property on the
     // toolbar. A custom property cannot be used because getComputedStyle can
     // only return the values of standard CSS properties.
     let counterReset = getComputedStyle(aToolbar).counterReset;
-    if (counterReset == "smallicons 0") {
+    if (counterReset == "smallicons 0")
       aToolbar.setAttribute("iconsize", "small");
-      document.persist(aToolbar.id, "iconsize");
-    } else if (counterReset == "largeicons 0") {
+    else if (counterReset == "largeicons 0")
       aToolbar.setAttribute("iconsize", "large");
-      document.persist(aToolbar.id, "iconsize");
-    }
   }
 
   Array.forEach(gNavToolbox.childNodes, retrieveToolbarIconsize);
   gNavToolbox.externalToolbars.forEach(retrieveToolbarIconsize);
 }
 
 /**
  * Update the global flag that tracks whether or not any edit UI (the Edit menu,