Making <children> support dynamic.

git-svn-id: svn://10.0.0.236/trunk@65157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2000-04-04 06:29:20 +00:00
parent b859bba9c2
commit 4c50c0a82b
13 changed files with 70 additions and 4 deletions

View File

@@ -3285,6 +3285,10 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresShell* aPresShell,
contentFrame->SetInitialChildList(aPresContext, nsnull,
childItems.childList);
// Create any anonymous frames the doc element frame requires
CreateAnonymousFrames(aPresShell, aPresContext, nsnull, aState, aDocElement, contentFrame,
childItems);
// only support absolute positioning if we are a block.
// if we are a box don't do it.
if (isBlockFrame) {
@@ -5072,13 +5076,12 @@ nsCSSFrameConstructor::CreateAnonymousFrames(nsIPresShell* aPresShell,
nsnull, explicitItems.childList);
}
/* XXX comes online soon.
if (frame) {
// XXX Eventually generalize to HTML as well. For now,
// leave this on nsIBox.
nsCOMPtr<nsIBox> box(do_QueryInterface(aNewFrame));
box->SetInsertionPoint(frame);
}*/
}
}
return NS_OK;