diff --git a/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.h b/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.h index 8033a696dd0..2d2605e6180 100644 --- a/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.h +++ b/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.h @@ -379,7 +379,11 @@ public: } protected: - nsMathMLmathBlockFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) {} + nsMathMLmathBlockFrame(nsStyleContext* aContext) : nsBlockFrame(aContext) { + // We should always have a space manager. Not that things can really try + // to float out of us anyway, but we need one for line layout. + AddStateBits(NS_BLOCK_SPACE_MGR); + } virtual ~nsMathMLmathBlockFrame() {} NS_IMETHOD