Use new GetVisibleArea API
git-svn-id: svn://10.0.0.236/trunk@2196 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user