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
This commit is contained in:
pierre%netscape.com
1999-05-07 04:00:57 +00:00
parent abe1512581
commit 8cef2830ab

View File

@@ -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);
}
}