Inline TwipsToPixels and PixelsToTwips on nsIPresContext. Bug 229371, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@152647 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -465,7 +465,7 @@ nsDocShellTreeOwner::SizeShellTo(nsIDocShellTreeItem* aShellItem,
|
||||
nsRect shellArea = presContext->GetVisibleArea();
|
||||
|
||||
float pixelScale;
|
||||
presContext->GetTwipsToPixels(&pixelScale);
|
||||
pixelScale = presContext->TwipsToPixels();
|
||||
PRInt32 browserCX = PRInt32((float)shellArea.width*pixelScale);
|
||||
PRInt32 browserCY = PRInt32((float)shellArea.height*pixelScale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user