More nsIPresContext deCOMtamination (bug 229371). Inline getters and setters for LinkHandler, VisibleArea, and Language; change some methods that don't return any useful data to |void|; make GetContainer return an already_AddRefed. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@152137 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -468,9 +468,8 @@ nsDocShellTreeOwner::SizeShellTo(nsIDocShellTreeItem* aShellItem,
|
||||
NS_ENSURE_SUCCESS(presShell->ResizeReflow(NS_UNCONSTRAINEDSIZE,
|
||||
NS_UNCONSTRAINEDSIZE), NS_ERROR_FAILURE);
|
||||
|
||||
nsRect shellArea;
|
||||
nsRect shellArea = presContext->GetVisibleArea();
|
||||
|
||||
presContext->GetVisibleArea(shellArea);
|
||||
float pixelScale;
|
||||
presContext->GetTwipsToPixels(&pixelScale);
|
||||
PRInt32 browserCX = PRInt32((float)shellArea.width*pixelScale);
|
||||
|
||||
Reference in New Issue
Block a user