From 31d6a1dd96b4a5ebf84ad63544352cf393c706b5 Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 21 Dec 2009 10:07:39 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=95=E3=83=AB=E3=82=BA=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=82=92=E4=BD=BF=E7=94=A8=E3=81=97=E3=81=9F=E3=83=9A=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=81=A7=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E3=81=8C=E3=81=9A=E3=82=8C=E3=82=8B=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3=EF=BC=88regression?= =?UTF-8?q?=EF=BC=89?= 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@5582 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser_autoHide.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index 6b8f57b4..54424823 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -707,7 +707,13 @@ TreeStyleTabBrowserAutoHide.prototype = { getZoomForFrame : function(aFrame) { - var zoom = this.rootContentViewer.fullZoom; + var zoom = aFrame + .QueryInterface(Components.interfaces.nsIInterfaceRequestor) + .getInterface(Components.interfaces.nsIWebNavigation) + .QueryInterface(Components.interfaces.nsIDocShell) + .contentViewer + .QueryInterface(Components.interfaces.nsIMarkupDocumentViewer) + .fullZoom; return (zoom * 1000 % 1) ? zoom+0.025 : zoom ; },