Make the block part of an {ib} split have a space manager if it needs to. Bug 354133, r+sr=roc, a=dveditz

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@214907 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-11-08 00:07:00 +00:00
parent b7e53f746f
commit 5ae0aa52e0

View File

@@ -13351,6 +13351,10 @@ nsCSSFrameConstructor::ConstructInline(nsFrameConstructorState& aState,
blockSC = mPresShell->StyleSet()->ResolvePseudoStyleFor(aContent, blockStyle,
aStyleContext);
if (! aState.mFloatedItems.containingBlock) {
blockFrame->AddStateBits(NS_BLOCK_SPACE_MGR | NS_BLOCK_MARGIN_ROOT);
}
InitAndRestoreFrame(aState, aContent, aParentFrame, blockSC, nsnull,
blockFrame, PR_FALSE);