mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Make GetFieldSetAreaFrame() handle a null first child. b=299188 r+sr=dbaron a=benjamin
This commit is contained in:
parent
310eb562eb
commit
4c0c7f56ae
@ -438,7 +438,7 @@ GetFieldSetAreaFrame(nsIFrame* aFieldsetFrame)
|
||||
{
|
||||
// Depends on the fieldset child frame order - see ConstructFieldSetFrame() below.
|
||||
nsIFrame* firstChild = aFieldsetFrame->GetFirstChild(nsnull);
|
||||
return firstChild->GetNextSibling() ? firstChild->GetNextSibling() : firstChild;
|
||||
return firstChild && firstChild->GetNextSibling() ? firstChild->GetNextSibling() : firstChild;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user