Use new GetVisibleArea API

git-svn-id: svn://10.0.0.236/trunk@2196 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-05-22 18:38:33 +00:00
parent bd1b101779
commit 3409cd9d61
2 changed files with 4 additions and 2 deletions

View File

@@ -649,7 +649,8 @@ void HTMLContentSink::StartLayout()
nsIPresShell* shell = mDocument->GetShellAt(i);
if (nsnull != shell) {
nsIPresContext* cx = shell->GetPresContext();
nsRect r = cx->GetVisibleArea();
nsRect r;
cx->GetVisibleArea(r);
shell->ResizeReflow(r.width, r.height);
NS_RELEASE(cx);
NS_RELEASE(shell);