Bug 382471. Don't crash when wigets aren't present. patch by Eli Friedman, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@227356 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8a5c0ab3bf
commit
525c65b147
@ -356,7 +356,7 @@ nsRect nsView::CalcWidgetBounds(nsWindowType aType)
|
||||
nsIWidget* parentWidget = GetParent()->GetNearestWidget(&offset);
|
||||
viewBounds += offset;
|
||||
|
||||
if (parentWidget && Type == eWindowType_popup &&
|
||||
if (parentWidget && aType == eWindowType_popup &&
|
||||
mVis == nsViewVisibility_kShow) {
|
||||
nsRect screenRect(0,0,1,1);
|
||||
parentWidget->WidgetToScreen(screenRect, screenRect);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user