Minefield 4.0b2preで起動できなくなる問題を解消

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6796 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-07-02 01:51:55 +00:00
parent 1c091bed08
commit 6615c628f9
2 changed files with 7 additions and 4 deletions

View File

@ -30,7 +30,7 @@ TreeStyleTabService._preLoadImages = {
'chrome://treestyletab/skin/metal/shadow-active-l.png', 'chrome://treestyletab/skin/metal/shadow-active-l.png',
'chrome://treestyletab/skin/metal/shadow-inactive-l.png' 'chrome://treestyletab/skin/metal/shadow-inactive-l.png'
].concat( ].concat(
'MozBorderImage' in document.documentElement.style ? TreeStyleTabService.Comparator.compare(TreeStyleTabService.XULAppInfo.version, '3.5') >= 0 ?
[ [
'chrome://treestyletab/skin/metal/tab-active-middle.png', 'chrome://treestyletab/skin/metal/tab-active-middle.png',
'chrome://treestyletab/skin/metal/tab-active-middle-selected.png', 'chrome://treestyletab/skin/metal/tab-active-middle-selected.png',
@ -47,7 +47,7 @@ TreeStyleTabService._preLoadImages = {
'chrome://treestyletab/skin/metal/shadow-active-r.png', 'chrome://treestyletab/skin/metal/shadow-active-r.png',
'chrome://treestyletab/skin/metal/shadow-inactive-r.png' 'chrome://treestyletab/skin/metal/shadow-inactive-r.png'
].concat( ].concat(
'MozBorderImage' in document.documentElement.style ? TreeStyleTabService.Comparator.compare(TreeStyleTabService.XULAppInfo.version, '3.5') >= 0 ?
[ [
'chrome://treestyletab/skin/metal/tab-active-middle.png', 'chrome://treestyletab/skin/metal/tab-active-middle.png',
'chrome://treestyletab/skin/metal/tab-active-middle-selected.png', 'chrome://treestyletab/skin/metal/tab-active-middle-selected.png',

View File

@ -9,8 +9,11 @@ var TreeStyleTabService = {
get currentTabbarPosition() /* PUBLIC API */ get currentTabbarPosition() /* PUBLIC API */
{ {
return this.browser.getAttribute(this.kTABBAR_POSITION) || return (
this.utils.currentTabbarPosition; // Don't touch to the <tabbrowser/> element before it is initialized by XBL constructor.
(this.preInitialized && this.browser.getAttribute(this.kTABBAR_POSITION)) ||
this.utils.currentTabbarPosition
);
}, },
set currentTabbarPosition(aValue) set currentTabbarPosition(aValue)
{ {