mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 549097: Move the invalidated region when scrolling. r=jrmuizel
This commit is contained in:
parent
9d12e48a85
commit
7241a4d222
@ -2394,6 +2394,9 @@ nsWindow::Scroll(const nsIntPoint& aDelta,
|
||||
nsWindow* w = static_cast<nsWindow*>(configuration.mChild);
|
||||
w->Invalidate(PR_FALSE);
|
||||
}
|
||||
|
||||
::GetUpdateRgn(mWnd, updateRgn, FALSE);
|
||||
::OffsetRgn(updateRgn, aDelta.x, aDelta.y);
|
||||
} else {
|
||||
#endif
|
||||
::ScrollWindowEx(mWnd, aDelta.x, aDelta.y, &clip, &clip, updateRgn, NULL, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user