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:
bryner%brianryner.com
2004-02-01 10:09:07 +00:00
parent 7f8ca508c2
commit 018aeefc0d
54 changed files with 427 additions and 631 deletions

View File

@@ -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);