From 0986e27b7f9206efd2c35daf29096c026e0fd415 Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 17 Jun 2008 12:38:22 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=83=AB=E3=82=BA=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C=E3=82=92=E6=94=B9=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2659 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 943f4d66..1cb32053 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2978,7 +2978,7 @@ TreeStyleTabBrowser.prototype = { else x += this.splitterWidth; w -= offset; - } + } ctx.globalAlpha = 1; if (pos == 'left' || pos == 'right') { ctx.fillStyle = this.splitterBorderColor; @@ -2986,14 +2986,21 @@ TreeStyleTabBrowser.prototype = { } ctx.save(); ctx.scale(zoom, zoom); - ctx.drawWindow(frame, x+frame.scrollX, y+frame.scrollY, w / zoom, h / zoom, '-moz-field'); + ctx.drawWindow( + frame, + (x / zoom)+frame.scrollX, + (y / zoom)+frame.scrollY, + w / zoom, + h / zoom, + '-moz-field' + ); ctx.restore(); - if (this.mTabBrowser.getAttribute(this.kTRANSPARENT) != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_FULL]) { - var alpha = Number(this.getTreePref('tabbar.transparent.partialTransparency')); + if (this.mTabBrowser.getAttribute(this.kTRANSPARENT) != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_FULL]) { + var alpha = Number(this.getTreePref('tabbar.transparent.partialTransparency')); if (isNaN(alpha)) alpha = 0.25; ctx.globalAlpha = alpha; - ctx.fillStyle = 'black'; - ctx.fillRect(0, 0, w, h); + ctx.fillStyle = 'black'; + ctx.fillRect(0, 0, w, h); } ctx.restore(); },