Minefield 3.7a4preでタブバーの再描画の回数を減らした(動きのスムースさよりも軽さを重視)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6525 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-31 02:48:09 +00:00
parent a2a1a151d5
commit 1cb6ebcf60

View File

@ -1145,9 +1145,21 @@ TreeStyleTabBrowser.prototype = {
updateFloatingTabbar : function TSTBrowser_updateFloatingTabbar()
{
// this method is for Firefox 3.7 or later
if (!this.isFloating) return;
if (
!this.isFloating || // this method is just for Firefox 3.7 or later
this.updateFloatingTabbarTimer
)
return;
this.stopRendering();
this.updateFloatingTabbarTimer = window.setTimeout(function(aSelf) {
aSelf.updateFloatingTabbarTimer = null;
aSelf.updateFloatingTabbarInternal()
aSelf.startRendering();
}, 0, this);
},
updateFloatingTabbarInternal : function TSTBrowser_updateFloatingTabbarInternal()
{
var strip = this.tabStrip;
var tabContainer = this.mTabBrowser.tabContainer;
var positioned = false;