Fix for bug #14737. Made sure that captionFrame is initialized before

we use it


git-svn-id: svn://10.0.0.236/trunk@48957 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com 1999-09-24 03:15:49 +00:00
parent 1949443bf0
commit ece0f48531
2 changed files with 2 additions and 2 deletions

View File

@ -7278,10 +7278,10 @@ nsCSSFrameConstructor::CreateContinuingOuterTableFrame(nsIPresContext* aPresCon
// list...
nsIFrame* captionFrame;
nsFrameItems childItems;
NS_NewTableCaptionFrame(&captionFrame);
nsFrameConstructorState state(aPresContext, mFixedContainingBlock,
GetAbsoluteContainingBlock(aPresContext, newFrame),
captionFrame);
NS_NewTableCaptionFrame(&captionFrame);
captionFrame->Init(*aPresContext, caption, newFrame, captionStyle, nsnull);
ProcessChildren(aPresContext, state, caption, captionFrame,
PR_TRUE, childItems, PR_TRUE);

View File

@ -7278,10 +7278,10 @@ nsCSSFrameConstructor::CreateContinuingOuterTableFrame(nsIPresContext* aPresCon
// list...
nsIFrame* captionFrame;
nsFrameItems childItems;
NS_NewTableCaptionFrame(&captionFrame);
nsFrameConstructorState state(aPresContext, mFixedContainingBlock,
GetAbsoluteContainingBlock(aPresContext, newFrame),
captionFrame);
NS_NewTableCaptionFrame(&captionFrame);
captionFrame->Init(*aPresContext, caption, newFrame, captionStyle, nsnull);
ProcessChildren(aPresContext, state, caption, captionFrame,
PR_TRUE, childItems, PR_TRUE);