зеркало из https://github.com/mozilla/pjs.git
Changed UpdateDirtyViews() to clear the dirty region when invalidating
the window. This fixes a problem where some views with widgets, like scrollbars, that we never receive a NS_PAINT for never cleared the dirty region
This commit is contained in:
Родитель
857e54f86d
Коммит
bf8a146224
|
@ -454,6 +454,9 @@ void nsViewManager::UpdateDirtyViews(nsIView *aView) const
|
|||
aView->GetWidget(widget);
|
||||
widget->Invalidate(rect, PR_FALSE);
|
||||
NS_RELEASE(widget);
|
||||
|
||||
// Clear the dirty region
|
||||
dirtyRegion->SetTo(0, 0, 0, 0);
|
||||
}
|
||||
NS_RELEASE(dirtyRegion);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче