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:
troy%netscape.com 1998-10-16 05:24:35 +00:00
Родитель 857e54f86d
Коммит bf8a146224
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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);
}