From 04c9515d248d2fb2c27ddd0171ea7c24f4af1cd7 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Mon, 5 Dec 2011 12:19:50 +0900 Subject: [PATCH] restore indent levels at first --- modules/browser.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/browser.js b/modules/browser.js index ec6b6fd9..65f5fb66 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -2348,6 +2348,8 @@ TreeStyleTabBrowser.prototype = { this.applyTreeStructureToTabBrowser(this.mTabBrowser, treeStructure.tree); + this.updateAllTabsIndent(); + this.getAllTabsArray(this.mTabBrowser) .forEach(function(aTab, aIndex) { this.tabsHash[this.getTabValue(aTab, this.kID)] = aTab; @@ -2365,7 +2367,6 @@ TreeStyleTabBrowser.prototype = { aTab.removeAttribute(this.kPARENT); aTab.removeAttribute(this.kCHILDREN); }, this); - this.updateAllTabsIndent(); }, /* DOM Event Handling */ @@ -4871,6 +4872,13 @@ TreeStyleTabBrowser.prototype = { } }, + updateAllTabsCount : function TSTBrowser_updateAllTabsCount() + { + this.rootTabs.forEach(function(aTab) { + this.updateTabsCount(aTab, this); + }, this); + }, + promoteTooDeepLevelTabs : function TSTBrowser_promoteTooDeepLevelTabs(aParent) { if (this.maxTreeLevel < 0 || !this.maxTreeLevelPhisical)