mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 04:41:54 +00:00
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:
parent
b8c3aa89b4
commit
325718f7c7
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user