remove all styles from the old tabs toolbar

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-01-23 15:57:01 +09:00
parent 8a1cab009d
commit bba8799933
2 changed files with 12 additions and 11 deletions

View File

@ -1219,15 +1219,7 @@ TreeStyleTabService.overrideExtensionsDelayed = function TSTService_overrideExte
{
case 'beforecustomization':
titlebar.removeEventListener('DOMAttrModified', this, true);
personalTitlebar.classList.remove(TreeStyleTabService.kTABBAR_TOOLBAR);
personalTitlebar.style.top = '';
personalTitlebar.style.left = '';
personalTitlebar.style.width = '';
personalTitlebar.style.height = '';
personalTitlebar.removeAttribute('height');
personalTitlebar.removeAttribute('width');
personalTitlebar.removeAttribute('ordinal');
personalTitlebar.removeAttribute('orient');
gBrowser.treeStyleTab.destroyTabStrip(personalTitlebar);
break;
case 'aftercustomization':

View File

@ -1737,16 +1737,25 @@ TreeStyleTabBrowser.prototype = {
this.removeTabStripAttribute('ordinal');
this.removeTabStripAttribute('orient');
this.destroyTabStrip(this.ownerToolbar);
this._endListenTabbarEvents();
this.tabbarDNDObserver.endListenEvents();
this.ownerToolbar.classList.remove(this.kTABBAR_TOOLBAR);
this.updateCustomizedTabsToolbar();
this.startRendering();
},
destroyTabStrip : function TSTBrowser_destroyTabStrip(aTabStrip)
{
aTabStrip.classList.remove(this.kTABBAR_TOOLBAR);
aTabStrip.style.top = aTabStrip.style.left = aTabStrip.style.width = aTabStrip.style.height = '';
aTabStrip.removeAttribute('height');
aTabStrip.removeAttribute('width');
aTabStrip.removeAttribute('ordinal');
aTabStrip.removeAttribute('orient');
},
syncReinitTabbar : function TSTBrowser_syncReinitTabbar()
{