Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -471,10 +471,8 @@ nsDocShellTreeOwner::SizeShellTo(nsIDocShellTreeItem* aShellItem,
|
||||
|
||||
nsRect shellArea = presContext->GetVisibleArea();
|
||||
|
||||
float pixelScale;
|
||||
pixelScale = presContext->TwipsToPixels();
|
||||
PRInt32 browserCX = PRInt32((float)shellArea.width*pixelScale);
|
||||
PRInt32 browserCY = PRInt32((float)shellArea.height*pixelScale);
|
||||
PRInt32 browserCX = presContext->AppUnitsToDevPixels(shellArea.width);
|
||||
PRInt32 browserCY = presContext->AppUnitsToDevPixels(shellArea.height);
|
||||
|
||||
return webBrowserChrome->SizeBrowserTo(browserCX, browserCY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user