From 2a762b92dfebc17090fb789ff7ca7952194531d4 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Tue, 8 Oct 2002 04:18:05 +0000 Subject: [PATCH] Bug 153679. r=gisburn,sr=kin. Remove bogus assertion; it's OK to have no widget sometimes during scrolling or invalidation. git-svn-id: svn://10.0.0.236/trunk@131391 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/view/src/nsViewManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/view/src/nsViewManager.cpp b/mozilla/view/src/nsViewManager.cpp index 711ee1f10bd..5004ba62d2a 100644 --- a/mozilla/view/src/nsViewManager.cpp +++ b/mozilla/view/src/nsViewManager.cpp @@ -1545,8 +1545,10 @@ PRBool nsViewManager::UpdateWidgetArea(nsView *aWidgetView, const nsRect &aDamag nsCOMPtr 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; }