20 ? boxObject.height : 23; var height = boxObject.width > 10 ? boxObject.width : 12; var styleString = "width: " + width + "px; height: " + height + "px;"; collapsedGrippy.setAttribute("style", styleString); collapsedGrippy.setAttribute("tooltiptext", aToolbar.getAttribute("grippytooltiptext")); collapsedGrippy.setAttribute("id", "moz_tb_collapsed_" + aToolbar.id); collapsedGrippy.setAttribute("moz_grippy_collapsed", "true"); collapsedGrippy.setAttribute("tbgrippy-collapsed", "true"); var collapsedTrayHolder = document.getAnonymousElementByAttribute(this, "tbattr", "collapsed-tray-holder"); if (collapsedTrayHolder.getAttribute("moz-collapsed") == "true") collapsedTrayHolder.removeAttribute("moz-collapsed"); document.getAnonymousElementByAttribute(this, "tbattr", "collapsed-tray").appendChild(collapsedGrippy); collapsedGrippy = document.getElementById("moz_tb_collapsed_" + aToolbar.id); } } catch (e) { throw e; } ]]> return (this.hasAttribute("deferattached") ? "true" : "false"); if (val) this.setAttribute("deferattached", "true"); else this.removeAttribute("deferattached"); return val; "browser.chrome.toolbar_style" Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService).getBranch(null) .QueryInterface(Components.interfaces.nsIPrefBranch2) this.prefs.addObserver(this.domain, this, false); if (this.prefs.getIntPref(this.domain) != 2) this.observe(this.prefs, "nsPref:changed", this.domain); this.prefs.removeObserver(this.domain, this); return this.hasAttribute("moz_grippy_collapsed"); if (val) this.setAttribute("moz_grippy_collapsed", "true"); else this.removeAttribute("moz_grippy_collapsed"); return val;