Fix for bug #6937: changed ConstructFrameByDisplayType() to use the correct
parent frame pointer for floated elements git-svn-id: svn://10.0.0.236/trunk@36439 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d6494b515f
commit
be89261178
@ -3323,7 +3323,8 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPre
|
||||
NS_NewFloatingItemWrapperFrame(&newFrame);
|
||||
|
||||
// Initialize the frame
|
||||
newFrame->Init(*aPresContext, aContent, aParentFrame, aStyleContext, nsnull);
|
||||
newFrame->Init(*aPresContext, aContent, aState.mFloatedItems.containingBlock,
|
||||
aStyleContext, nsnull);
|
||||
|
||||
// See if we need to create a view
|
||||
nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, newFrame,
|
||||
|
||||
@ -3323,7 +3323,8 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPre
|
||||
NS_NewFloatingItemWrapperFrame(&newFrame);
|
||||
|
||||
// Initialize the frame
|
||||
newFrame->Init(*aPresContext, aContent, aParentFrame, aStyleContext, nsnull);
|
||||
newFrame->Init(*aPresContext, aContent, aState.mFloatedItems.containingBlock,
|
||||
aStyleContext, nsnull);
|
||||
|
||||
// See if we need to create a view
|
||||
nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, newFrame,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user