Calls SetOrigin() in Invalidate(). Fixes the problem where on going to a new page the top of the html area gets drawn last. Thanks to Cyrus Harmon <cyrus@neomorphic.com>

This commit is contained in:
pierre%netscape.com 1999-01-21 11:21:10 +00:00
parent 3073cf7ed7
commit cbe2cc8c3a

View File

@ -517,6 +517,7 @@ NS_IMETHODIMP nsWindow::Invalidate(const nsRect &aRect, PRBool aIsSynchronous)
GrafPtr savePort; GrafPtr savePort;
::GetPort(&savePort); ::GetPort(&savePort);
::SetPort(mWindowPtr); ::SetPort(mWindowPtr);
::SetOrigin(0, 0);
::InvalRect(&macRect); ::InvalRect(&macRect);
::SetPort(savePort); ::SetPort(savePort);
} }