Ensure a space manager for MathML containers reflowing inlines. Bug 325222, r+sr=roc

This commit is contained in:
bzbarsky%mit.edu 2006-09-25 01:44:25 +00:00
Родитель 52074e23de
Коммит 32f4bdbc5e
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

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