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:
parent
a2a1a151d5
commit
1cb6ebcf60
@ -1145,9 +1145,21 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
updateFloatingTabbar : function TSTBrowser_updateFloatingTabbar()
|
updateFloatingTabbar : function TSTBrowser_updateFloatingTabbar()
|
||||||
{
|
{
|
||||||
// this method is for Firefox 3.7 or later
|
if (
|
||||||
if (!this.isFloating) return;
|
!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 strip = this.tabStrip;
|
||||||
var tabContainer = this.mTabBrowser.tabContainer;
|
var tabContainer = this.mTabBrowser.tabContainer;
|
||||||
var positioned = false;
|
var positioned = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user