зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug #6937: changed ConstructFrameByDisplayType() to use the correct
parent frame pointer for floated elements
This commit is contained in:
Родитель
b66c3c67f2
Коммит
8c614c3f56
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче