Bug 405271. MathML should not reflow children with a constrained height; that triggers pagination which is definitely not what we want. r+sr=bzbarsky

This commit is contained in:
roc+@cs.cmu.edu 2008-01-14 17:13:21 -08:00
Родитель 5273b12459
Коммит 882531568d
4 изменённых файлов: 4 добавлений и 5 удалений

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

@ -128,7 +128,7 @@ nsMathMLTokenFrame::Reflow(nsPresContext* aPresContext,
aDesiredSize.ascent = 0;
aDesiredSize.mBoundingMetrics.Clear();
nsSize availSize(aReflowState.ComputedWidth(), aReflowState.ComputedHeight());
nsSize availSize(aReflowState.ComputedWidth(), NS_UNCONSTRAINEDSIZE);
nsIFrame* childFrame = GetFirstChild(nsnull);
while (childFrame) {
// ask our children to compute their bounding metrics

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

@ -283,8 +283,7 @@ nsMathMLmactionFrame::Reflow(nsPresContext* aPresContext,
mBoundingMetrics.Clear();
nsIFrame* childFrame = GetSelectedFrame();
if (childFrame) {
nsSize availSize(aReflowState.ComputedWidth(),
aReflowState.ComputedHeight());
nsSize availSize(aReflowState.ComputedWidth(), NS_UNCONSTRAINESIZE);
nsHTMLReflowState childReflowState(aPresContext, aReflowState,
childFrame, availSize);
rv = ReflowChild(childFrame, aPresContext, aDesiredSize,

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

@ -289,7 +289,7 @@ nsMathMLmfencedFrame::doReflow(nsPresContext* aPresContext,
// refactored to use nsMathMLContainerFrame::Reflow() at some stage.
nsReflowStatus childStatus;
nsSize availSize(aReflowState.ComputedWidth(), aReflowState.ComputedHeight());
nsSize availSize(aReflowState.ComputedWidth(), NS_UNCONSTRAINEDSIZE);
nsIFrame* firstChild = aForFrame->GetFirstChild(nsnull);
nsIFrame* childFrame = firstChild;
nscoord ascent = 0, descent = 0;

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

@ -159,7 +159,7 @@ nsMathMLmrootFrame::Reflow(nsPresContext* aPresContext,
nsReflowStatus& aStatus)
{
nsresult rv = NS_OK;
nsSize availSize(aReflowState.ComputedWidth(), aReflowState.ComputedHeight());
nsSize availSize(aReflowState.ComputedWidth(), NS_UNCONSTRAINEDSIZE);
nsReflowStatus childStatus;
aDesiredSize.width = aDesiredSize.height = 0;