diff --git a/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp b/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp index 5f867536727..ea1ee7fbf2f 100644 --- a/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp +++ b/mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp @@ -1009,6 +1009,10 @@ nsMathMLContainerFrame::ReflowForeignChild(nsIFrame* aChildFrame, if (aReflowState.mLineLayout) aReflowState.mLineLayout->ForgetWordFrames(); + nsAutoSpaceManager autoSpaceManager(NS_CONST_CAST(nsHTMLReflowState &, aReflowState)); + nsresult rv = autoSpaceManager.CreateSpaceManagerFor(aPresContext, this); + NS_ENSURE_SUCCESS(rv, rv); + // provide a local, self-contained linelayout where to reflow the nsInlineFrame nsSize availSize(NS_UNCONSTRAINEDSIZE, NS_UNCONSTRAINEDSIZE); nsLineLayout ll(aPresContext, aReflowState.mSpaceManager, aReflowState.parentReflowState,