Bug 631491 - toolbar's iconsize attribute is not updated correctly after switching themes. r+a=dolske

This commit is contained in:
Dão Gottwald 2011-03-03 11:35:18 +01:00
parent c1b5d15bb7
commit 188f8afb27

View File

@ -3653,13 +3653,10 @@ function retrieveToolbarIconsizesFromTheme() {
// 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);