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:
troy%netscape.com 1999-06-23 03:14:24 +00:00
parent d6494b515f
commit be89261178
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,