зеркало из https://github.com/mozilla/pjs.git
Ensure a space manager for MathML containers reflowing inlines. Bug 325222, r+sr=roc
This commit is contained in:
Родитель
52074e23de
Коммит
32f4bdbc5e
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче