フルズームを使用したページでタブバーの背景がずれる問題を修正(regression)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5582 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-21 10:07:39 +00:00
parent 87711786fb
commit 31d6a1dd96

View File

@ -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 ;
},