зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5273b12459
Коммит
882531568d
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче