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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user