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
This commit is contained in:
bzbarsky%mit.edu 2006-09-25 01:44:25 +00:00
parent 28e6a26cf8
commit c0103b4e12

View File

@ -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,