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
Родитель 0db0ca30d4
Коммит 361ffc144f
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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