don't cache scroll box for the tab bar

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-23 15:18:09 +09:00
parent 4578f832dd
commit 437019a138

View File

@ -54,16 +54,12 @@ TreeStyleTabBrowser.prototype = {
get scrollBox()
{
if (!this._scrollBox) {
this._scrollBox = ( // Tab Mix Plus
return ( // Tab Mix Plus
this.getTreePref('compatibility.TMP') &&
document.getAnonymousElementByAttribute(this.mTabBrowser.mTabContainer, 'class', 'tabs-frame')
) ||
this.mTabBrowser.mTabContainer.mTabstrip;
}
return this._scrollBox;
},
_scrollBox : null,
get scrollBoxObject()
{
return (this.scrollBox.scrollBoxObject || this.scrollBox.boxObject)
@ -1657,7 +1653,6 @@ TreeStyleTabBrowser.prototype = {
this.removePrefListener(this);
delete this.mTabBrowser;
delete this._scrollBox;
},
destroyTab : function TSTBrowser_destroyTab(aTab)