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:
parent
1949443bf0
commit
ece0f48531
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user