mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 631491 - toolbar's iconsize attribute is not updated correctly after switching themes. r+a=dolske
This commit is contained in:
parent
c1b5d15bb7
commit
188f8afb27
@ -3653,13 +3653,10 @@ function retrieveToolbarIconsizesFromTheme() {
|
|||||||
// toolbar. A custom property cannot be used because getComputedStyle can
|
// toolbar. A custom property cannot be used because getComputedStyle can
|
||||||
// only return the values of standard CSS properties.
|
// only return the values of standard CSS properties.
|
||||||
let counterReset = getComputedStyle(aToolbar).counterReset;
|
let counterReset = getComputedStyle(aToolbar).counterReset;
|
||||||
if (counterReset == "smallicons 0") {
|
if (counterReset == "smallicons 0")
|
||||||
aToolbar.setAttribute("iconsize", "small");
|
aToolbar.setAttribute("iconsize", "small");
|
||||||
document.persist(aToolbar.id, "iconsize");
|
else if (counterReset == "largeicons 0")
|
||||||
} else if (counterReset == "largeicons 0") {
|
|
||||||
aToolbar.setAttribute("iconsize", "large");
|
aToolbar.setAttribute("iconsize", "large");
|
||||||
document.persist(aToolbar.id, "iconsize");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Array.forEach(gNavToolbox.childNodes, retrieveToolbarIconsize);
|
Array.forEach(gNavToolbox.childNodes, retrieveToolbarIconsize);
|
||||||
|
Loading…
Reference in New Issue
Block a user