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
This commit is contained in:
parent
e247e1b752
commit
2a762b92df
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user