Fix scrolling bug with test11. Clip out the siblings from the main window region as well as its visible region.

This commit is contained in:
pierre%netscape.com 1999-05-07 04:00:57 +00:00
parent b8c3aa89b4
commit 325718f7c7

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