* Firefox 2用の古いコードを削除

* isVertical, isFixedはDOMContentLoaded以前はDOMを参照せずに設定値をそのまま返す

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7181 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-13 04:57:53 +00:00
parent 206eeabe54
commit ef2e098466
4 changed files with 10 additions and 45 deletions

View File

@ -23,20 +23,3 @@
tabbrowser[treestyletab-mode="vertical"] tabs[flowing] > * .tabs-frame {
-moz-box-flex: 1 !important;
}
:root[treestyletab-enable-compatibility-tmp="true"]
tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabs-frame {
direction: rtl !important;
/* if there is scrollbar, closeboxes of tabs cannot be clicked because
they are "under the rightside scrollbar" even if it is moved to
leftside by the above rule. This seems a bug. Following rules move
the "hidden rightside scrollbar" out of the box, then we can click
closeboxes again. */
margin-right: -1em !important;
padding-right: 1em !important;
}
:root[treestyletab-enable-compatibility-tmp="true"]
tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-tabs[firefox2][flowing][closebutton][hideAllTabsButton][tabBarSpace] .tabbrowser-tab {
direction: ltr !important;
}

View File

@ -74,21 +74,6 @@ tabbrowser[treestyletab-mode="vertical"] .tabs-stack > *:first-child + * > hbox:
-moz-box-flex: 1 !important;
}
.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox {
direction: rtl !important;
/* if there is scrollbar, closeboxes of tabs cannot be clicked because
they are "under the rightside scrollbar" even if it is moved to
leftside by the above rule. This seems a bug. Following rules move
the "hidden rightside scrollbar" out of the box, then we can click
closeboxes again. */
margin-right: -1em !important;
padding-right: 1em !important;
}
.tabbrowser-tabs[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox > .scrollbox-innerbox {
direction: ltr !important;
}
.tabbrowser-tabs[treestyletab-mode="vertical"]
.tabbrowser-tab:not([treestyletab-removed="true"]):not([pinned]),
.tabbrowser-tabs[treestyletab-mode="vertical"]

View File

@ -107,6 +107,9 @@ TreeStyleTabBrowser.prototype = {
get isVertical()
{
if (!this.preInitialized)
return ['left', 'right'].indexOf(this.currentTabbarPosition) > -1;
var b = this.mTabBrowser;
if (!b) return false;
var box = this.scrollBox || b.mTabContainer ;
@ -120,14 +123,19 @@ TreeStyleTabBrowser.prototype = {
get isFixed()
{
var orient = this.isVertical ? 'vertical' : 'horizontal' ;
if (!this.preInitialized)
return this.getTreePref('tabbar.fixed.'+orient);
var b = this.mTabBrowser;
if (!b) return false;
return b.getAttribute(this.kFIXED+'-'+(this.isVertical ? 'vertical' : 'horizontal')) == 'true';
return b.getAttribute(this.kFIXED+'-'+orient) == 'true';
},
isTabInViewport : function TSTBrowser_isTabInViewport(aTab)
{
if (!aTab) return false;
if (!this.preInitialized || !aTab)
return false;
if (aTab.getAttribute('pinned') == 'true')
return true;
var tabBox = aTab.boxObject;
@ -724,16 +732,6 @@ TreeStyleTabBrowser.prototype = {
}
}
/* To move up content area on the tab bar, switch tab.
If we don't do it, a gray space appears on the content area
by negative margin of it. */
if (this.currentTabbarPosition == 'left' &&
b.getAttribute(this.kSCROLLBAR_INVERTED) == 'true') {
b.removeTab(
b.selectedTab = b.addTab('about:blank')
);
}
this.ObserverService.addObserver(this, 'TreeStyleTab:indentModified', false);
this.ObserverService.addObserver(this, 'TreeStyleTab:collapseExpandAllSubtree', false);
this.ObserverService.addObserver(this, 'private-browsing-change-granted', false);

View File

@ -93,7 +93,6 @@ var TreeStyleTabUtils = {
kTAB_INVERTED : 'treestyletab-tab-inverted',
kTAB_CONTENTS_INVERTED : 'treestyletab-tab-contents-inverted',
kCLOSEBOX_INVERTED : 'treestyletab-closebox-inverted',
kSCROLLBAR_INVERTED : 'treestyletab-scrollbar-inverted',
kTWISTY_HOVER : 'treestyletab-twisty-hover',
kTWISTY_STYLE : 'treestyletab-twisty-style',