зеркало из https://github.com/mozilla/gecko-dev.git
[BeOS]Bug 315542, shifting native paintregion in scroll, p=sergei_d, r=thesuckiestemail@yahoo.se, BeOS-only, no need for sr
This commit is contained in:
Родитель
2656d26301
Коммит
a30b8496e5
|
@ -1830,6 +1830,11 @@ NS_METHOD nsWindow::Scroll(PRInt32 aDx, PRInt32 aDy, nsRect *aClipRect)
|
|||
childWidget->Move(bounds.x, bounds.y);
|
||||
}
|
||||
}
|
||||
// Native region needs shifting too.
|
||||
mView->paintregion.OffsetBy(aDx, aDy);
|
||||
// Adding native paintregion to calculated one.
|
||||
// May be done with BRegion reg; GetNativeRegion(®);
|
||||
invalid.Include(&mView->paintregion);
|
||||
//OnPaint don't need Lock()
|
||||
mView->UnlockLooper();
|
||||
// Drawing uncovered regions by direct OnPaint call,
|
||||
|
|
Загрузка…
Ссылка в новой задаче