From 8cef2830abe4edf5cbba7c48d8a600216cc35c83 Mon Sep 17 00:00:00 2001 From: "pierre%netscape.com" Date: Fri, 7 May 1999 04:00:57 +0000 Subject: [PATCH] Fix scrolling bug with test11. Clip out the siblings from the main window region as well as its visible region. git-svn-id: svn://10.0.0.236/trunk@30657 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsChildWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/widget/src/mac/nsChildWindow.cpp b/mozilla/widget/src/mac/nsChildWindow.cpp index 4df1e30066c..4b71c12d101 100644 --- a/mozilla/widget/src/mac/nsChildWindow.cpp +++ b/mozilla/widget/src/mac/nsChildWindow.cpp @@ -111,7 +111,7 @@ void nsChildWindow::CalcWindowRegions() } #endif - // clip the siblings out of the visRgn + // clip the siblings out of the window region and visRegion if (mClipSiblings && mParent) { RgnHandle siblingRgn = ::NewRgn(); @@ -137,6 +137,7 @@ void nsChildWindow::CalcWindowRegions() Rect macRect; ::SetRect(&macRect, childRect.x, childRect.y, childRect.XMost(), childRect.YMost()); ::RectRgn(siblingRgn, &macRect); + ::DiffRgn(mWindowRegion, siblingRgn, mWindowRegion); ::DiffRgn(mVisRegion, siblingRgn, mVisRegion); } }