зеркало из https://github.com/mozilla/gecko-dev.git
Corrected problem that was causing dirty rect to be incorrectly computed
when scrolling is involved
This commit is contained in:
Родитель
1964fe19fa
Коммит
86e66bdd76
|
@ -548,6 +548,9 @@ NS_IMETHODIMP nsViewManager :: UpdateView(nsIView *aView, const nsRect &aRect, P
|
|||
nscoord xoffset, yoffset;
|
||||
GetWindowOffsets(widgetView, &xoffset, &yoffset);
|
||||
trect.MoveBy(-xoffset, -yoffset);
|
||||
if (trect.y < 0) {
|
||||
trect.y = 0;
|
||||
}
|
||||
|
||||
// Add this rect to the widgetView's dirty region.
|
||||
AddRectToDirtyRegion(widgetView, trect);
|
||||
|
|
Загрузка…
Ссылка в новой задаче