зеркало из https://github.com/mozilla/pjs.git
simple bullet proofing fix for #20423
This commit is contained in:
Родитель
179b1a0c13
Коммит
9419807380
|
@ -376,7 +376,9 @@ nsComboboxControlFrame::ShowList(nsIPresContext* aPresContext, PRBool aShowList)
|
|||
nsIView * view = nsnull;
|
||||
listFrame->GetView(aPresContext, &view);
|
||||
NS_ASSERTION(view != nsnull, "nsComboboxControlFrame view is null");
|
||||
view->GetWidget(widget);
|
||||
if (view) {
|
||||
view->GetWidget(widget);
|
||||
}
|
||||
if (nsnull != widget) {
|
||||
widget->CaptureRollupEvents((nsIRollupListener *)this, !mDroppedDown, PR_TRUE);
|
||||
NS_RELEASE(widget);
|
||||
|
|
|
@ -376,7 +376,9 @@ nsComboboxControlFrame::ShowList(nsIPresContext* aPresContext, PRBool aShowList)
|
|||
nsIView * view = nsnull;
|
||||
listFrame->GetView(aPresContext, &view);
|
||||
NS_ASSERTION(view != nsnull, "nsComboboxControlFrame view is null");
|
||||
view->GetWidget(widget);
|
||||
if (view) {
|
||||
view->GetWidget(widget);
|
||||
}
|
||||
if (nsnull != widget) {
|
||||
widget->CaptureRollupEvents((nsIRollupListener *)this, !mDroppedDown, PR_TRUE);
|
||||
NS_RELEASE(widget);
|
||||
|
|
Загрузка…
Ссылка в новой задаче