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

parent frame for absolutely positioned tables
This commit is contained in:
troy%netscape.com 1999-09-29 05:06:17 +00:00
Родитель 45f04e0594
Коммит 4b1a623ab9
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

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

Просмотреть файл

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