don't reparent the col style context if the parent is anonymous colgroup bug326015 r/sr=bzbarsky

This commit is contained in:
bmlk@gmx.de
2006-02-11 11:26:57 +00:00
parent 7880f20a0c
commit d9ecf73aff

View File

@@ -3952,11 +3952,6 @@ nsCSSFrameConstructor::ConstructTableColFrame(nsFrameConstructorState& aState,
}
InitAndRestoreFrame(aState, aContent, parentFrame, aStyleContext, nsnull,
aNewFrame);
// if the parent frame was anonymous then reparent the style context
if (aIsPseudoParent) {
aState.mFrameManager->
ReParentStyleContext(aNewFrame, parentFrame->GetStyleContext());
}
// construct additional col frames if the col frame has a span > 1
PRInt32 span = 1;