From bba8799933515713e081a0e0183d491dc6e56d02 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Sun, 23 Jan 2011 15:57:01 +0900 Subject: [PATCH] remove all styles from the old tabs toolbar --- content/treestyletab/hacks.js | 10 +--------- content/treestyletab/treestyletabbrowser.js | 13 +++++++++++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/content/treestyletab/hacks.js b/content/treestyletab/hacks.js index 3ef49c01..024cc4ce 100644 --- a/content/treestyletab/hacks.js +++ b/content/treestyletab/hacks.js @@ -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': diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index c93c1ef8..500f3b94 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -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() {