b=21657 a=chofmann@netscape.com Made "overflow list" a full fledged

child list and changed ReparentFrameView() to check it.
This commit is contained in:
troy@netscape.com
2000-01-22 01:16:50 +00:00
parent 3c37aa6f79
commit 67f034175a
127 changed files with 1345 additions and 946 deletions
@@ -165,8 +165,14 @@ ReparentFrameViewTo(nsIPresContext* aPresContext,
// Iterate the child frames, and check each child frame to see if it has
// a view
nsIFrame* childFrame;
aFrame->FirstChild(aPresContext, nsnull, &childFrame);
while (childFrame) {
ReparentFrameViewTo(aPresContext, childFrame, aViewManager, aNewParentView, aOldParentView);
childFrame->GetNextSibling(&childFrame);
}
aFrame->FirstChild(nsnull, &childFrame);
// Also check the overflow-list
aFrame->FirstChild(aPresContext, nsLayoutAtoms::overflowList, &childFrame);
while (childFrame) {
ReparentFrameViewTo(aPresContext, childFrame, aViewManager, aNewParentView, aOldParentView);
childFrame->GetNextSibling(&childFrame);
@@ -217,7 +223,7 @@ nsHTMLContainerFrame::ReparentFrameView(nsIPresContext* aPresContext,
if (!childView) {
// Child frame doesn't have a view. See if it has any child frames
nsIFrame* firstChild;
aChildFrame->FirstChild(nsnull, &firstChild);
aChildFrame->FirstChild(aPresContext, nsnull, &firstChild);
if (!firstChild) {
return NS_OK;
}