Bug 153679. r=gisburn,sr=kin. Remove bogus assertion; it's OK to have no widget sometimes during scrolling or invalidation.

This commit is contained in:
roc+%cs.cmu.edu 2002-10-08 04:18:05 +00:00
Родитель 7a159c2fb2
Коммит edadb80f12
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1545,8 +1545,10 @@ PRBool nsViewManager::UpdateWidgetArea(nsView *aWidgetView, const nsRect &aDamag
nsCOMPtr<nsIWidget> widget;
GetWidgetForView(aWidgetView, getter_AddRefs(widget));
NS_ASSERTION(nsnull != widget, "aWidgetView must have a widget");
if (!widget) {
// The root view or a scrolling view might not have a widget
// (for example, during printing). We get here when we scroll
// during printing to show selected options in a listbox, for example.
return PR_FALSE;
}