From 5ae0aa52e0cee484541dca3de3e0899c9c35ee05 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Wed, 8 Nov 2006 00:07:00 +0000 Subject: [PATCH] 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 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index db73e88a0c8..eafbec6bc47 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -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);