mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Fix crash bug 282707. Patch by Mats Palmgren <mats.palmgren@bredband.net>, r+sr=bzbarsky
This commit is contained in:
parent
0e1d9f3154
commit
88a01f50af
@ -2252,14 +2252,12 @@ nsComboboxControlFrame::SetInitialChildList(nsPresContext* aPresContext,
|
||||
child = child->GetNextSibling()) {
|
||||
nsIFormControlFrame* fcFrame = nsnull;
|
||||
CallQueryInterface(child, &fcFrame);
|
||||
if (fcFrame) {
|
||||
if (fcFrame->GetFormControlType() == NS_FORM_INPUT_BUTTON) {
|
||||
mButtonFrame = child;
|
||||
}
|
||||
} else {
|
||||
mDisplayFrame = child;
|
||||
if (fcFrame && fcFrame->GetFormControlType() == NS_FORM_INPUT_BUTTON) {
|
||||
mButtonFrame = child;
|
||||
break;
|
||||
}
|
||||
}
|
||||
NS_ASSERTION(mButtonFrame, "missing button frame in initial child list");
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user