ページ内の要素のスクロール、ページの読み込み完了、タブの切り替え時に、不要な再描画を行わないようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5110 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
528ccd99b5
commit
ff36acf0bb
@ -580,6 +580,11 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
}
|
||||
},
|
||||
|
||||
get shouldRedraw()
|
||||
{
|
||||
return this.enabled && this.shown && this.mTabBrowser.hasAttribute(this.kTRANSPARENT);
|
||||
},
|
||||
|
||||
drawBG : function()
|
||||
{
|
||||
var sv = this.mOwner;
|
||||
@ -826,12 +831,13 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
|
||||
case 'scroll':
|
||||
var node = aEvent.originalTarget;
|
||||
if ((!node || node.ownerDocument != document) && this.enabled)
|
||||
if ((!node || node.ownerDocument != document) && this.shouldRedraw)
|
||||
this.redrawContentArea();
|
||||
return;
|
||||
|
||||
case 'load':
|
||||
this.redrawContentArea();
|
||||
if (this.shouldRedraw)
|
||||
this.redrawContentArea();
|
||||
return;
|
||||
|
||||
case 'TabOpen':
|
||||
@ -845,7 +851,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
||||
return;
|
||||
|
||||
case 'select':
|
||||
if (this.enabled && this.shown)
|
||||
if (this.shouldRedraw)
|
||||
this.redrawContentArea();
|
||||
if (!TreeStyleTabService.accelKeyPressed)
|
||||
this.showForFeedback();
|
||||
|
Loading…
x
Reference in New Issue
Block a user