Fix various crashes by not trying to set the parent before we've initialized the frame. Bug 262054, r+sr=roc.

This commit is contained in:
bryner%brianryner.com 2004-09-29 18:43:28 +00:00
parent 2966e5b957
commit 0e838f274d

View File

@ -217,8 +217,6 @@ nsBoxFrame::Init(nsPresContext* aPresContext,
nsStyleContext* aContext,
nsIFrame* aPrevInFlow)
{
SetParent(aParent);
mPresContext = aPresContext;
nsresult rv = nsContainerFrame::Init(aPresContext, aContent, aParent, aContext, aPrevInFlow);