From cbe2cc8c3a6b75a67f3f9401258e5ae55d0e1926 Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Thu, 21 Jan 1999 11:21:10 +0000 Subject: [PATCH] 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 --- widget/src/mac/nsWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/widget/src/mac/nsWindow.cpp b/widget/src/mac/nsWindow.cpp index f835ca183680..8f5ea61b4aa0 100644 --- a/widget/src/mac/nsWindow.cpp +++ b/widget/src/mac/nsWindow.cpp @@ -517,6 +517,7 @@ NS_IMETHODIMP nsWindow::Invalidate(const nsRect &aRect, PRBool aIsSynchronous) GrafPtr savePort; ::GetPort(&savePort); ::SetPort(mWindowPtr); + ::SetOrigin(0, 0); ::InvalRect(&macRect); ::SetPort(savePort); }