Fix for annoying assert. Bug 202717, r+sr=rbs

This commit is contained in:
bzbarsky@mit.edu
2003-04-21 04:09:51 +00:00
parent 2db7936404
commit e025e1f793
2 changed files with 6 additions and 4 deletions

View File

@@ -5031,9 +5031,10 @@ nsCSSFrameConstructor::ConstructHTMLFrame(nsIPresShell* aPresShell,
CreateAnonymousFrames(aPresShell, aPresContext, aTag, aState, aContent, newFrame,
PR_FALSE, childItems);
// Set the frame's initial child list
newFrame->SetInitialChildList(aPresContext, nsnull, childItems.childList);
if (childItems.childList) {
newFrame->SetInitialChildList(aPresContext, nsnull, childItems.childList);
}
}
// If the frame is positioned, then create a placeholder frame