captions now work properly with new frame layout strategy.

nsTableOuterFrame->mFirstChild==nsTableOuterFrame->mInnerTableFrame, always.
This commit is contained in:
buster@netscape.com
1998-09-20 04:50:08 +00:00
parent 838713c50b
commit 965be4f3c3
5 changed files with 27 additions and 37 deletions

View File

@@ -1036,15 +1036,13 @@ HTMLStyleSheetImpl::ConstructTableFrame(nsIPresContext* aPresContext,
if (nsnull == captionFrame) {
NS_NewBodyFrame(childContent, aNewFrame, captionFrame);
captionFrame->SetStyleContext(aPresContext, childStyleContext);
// Process the caption's child content and initialize it
nsIFrame* captionChildList;
ProcessChildren(aPresContext, captionFrame, childContent, captionChildList);
captionFrame->Init(*aPresContext, captionChildList);
// Prepend the caption frame to the outer frame's child list
captionFrame->SetNextSibling(innerFrame);
childList = captionFrame;
innerFrame->SetNextSibling(captionFrame);
}
break;