From c0103b4e12e986800fe359b4c8fc078b9403de3a Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 25 Sep 2006 01:44:25 +0000 Subject: [PATCH] Ensure a space manager for MathML containers reflowing inlines. Bug 325222, r+sr=roc git-svn-id: svn://10.0.0.236/trunk@212276 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/mathml/base/src/nsMathMLContainerFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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,