From 3409cd9d6176825df2e8079608c73fa5284266fa Mon Sep 17 00:00:00 2001 From: kipp Date: Fri, 22 May 1998 18:38:33 +0000 Subject: [PATCH] Use new GetVisibleArea API git-svn-id: svn://10.0.0.236/trunk@2196 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLContentSink.cpp | 3 ++- mozilla/layout/html/document/src/nsHTMLContentSink.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index f38440824b5..f3272d39752 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -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); diff --git a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp index f38440824b5..f3272d39752 100644 --- a/mozilla/layout/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/layout/html/document/src/nsHTMLContentSink.cpp @@ -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);