Fix for bug #11633. Changed ConstructFrameByDisplayType() to use the correct

parent frame for absolutely positioned tables


git-svn-id: svn://10.0.0.236/trunk@49302 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-09-29 05:06:17 +00:00
parent 5d678c8d94
commit d22c5f8fe9
2 changed files with 4 additions and 4 deletions

View File

@@ -4356,11 +4356,11 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPre
nsIFrame* geometricParent = aParentFrame;
if (NS_STYLE_POSITION_ABSOLUTE == position->mPosition) {
isAbsolutelyPositioned = PR_TRUE;
aParentFrame = aState.mAbsoluteItems.containingBlock;
geometricParent = aState.mAbsoluteItems.containingBlock;
}
if (NS_STYLE_POSITION_FIXED == position->mPosition) {
isFixedPositioned = PR_TRUE;
aParentFrame = aState.mFixedItems.containingBlock;
geometricParent = aState.mFixedItems.containingBlock;
}
rv = ConstructTableFrame(aPresContext, aState, aContent, geometricParent,
aStyleContext, newFrame, tableCreator);

View File

@@ -4356,11 +4356,11 @@ nsCSSFrameConstructor::ConstructFrameByDisplayType(nsIPresContext* aPre
nsIFrame* geometricParent = aParentFrame;
if (NS_STYLE_POSITION_ABSOLUTE == position->mPosition) {
isAbsolutelyPositioned = PR_TRUE;
aParentFrame = aState.mAbsoluteItems.containingBlock;
geometricParent = aState.mAbsoluteItems.containingBlock;
}
if (NS_STYLE_POSITION_FIXED == position->mPosition) {
isFixedPositioned = PR_TRUE;
aParentFrame = aState.mFixedItems.containingBlock;
geometricParent = aState.mFixedItems.containingBlock;
}
rv = ConstructTableFrame(aPresContext, aState, aContent, geometricParent,
aStyleContext, newFrame, tableCreator);