Bug 1748277 - Use fresh nsReflowStatus when reflowing nsMathMLTokenFrame's children. r=dholbert

The root cause of the assertion count bump is bug 1751260.

Differential Revision: https://phabricator.services.mozilla.com/D136408
This commit is contained in:
Ting-Yu Lin 2022-01-20 22:44:21 +00:00
parent ef630bb992
commit 1ab64170cd
4 changed files with 32 additions and 2 deletions

View File

@ -129,9 +129,12 @@ void nsMathMLTokenFrame::Reflow(nsPresContext* aPresContext,
availSize.BSize(wm) = NS_UNCONSTRAINEDSIZE;
ReflowInput childReflowInput(aPresContext, aReflowInput, childFrame,
availSize);
nsReflowStatus childStatus;
ReflowChild(childFrame, aPresContext, childDesiredSize, childReflowInput,
aStatus);
// NS_ASSERTION(aStatus.IsComplete(), "bad status");
childStatus);
NS_ASSERTION(childStatus.IsComplete(),
"We gave the child unconstrained available block-size, so its "
"status should be complete!");
SaveReflowAndBoundingMetricsFor(childFrame, childDesiredSize,
childDesiredSize.mBoundingMetrics);
}

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<style>
@namespace url(http://www.w3.org/1998/Math/MathML);
* {
padding-inline-start: 27em;
break-after: page;
content: url(1748277.png);
writing-mode: sideways-lr;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", () => {
SpecialPowers.wrap(window).printPreview()?.close()
})
</script>
<math>
<mfrac>
<munder>
<ms>
<mglyph>
</mglyph>
</ms>
</munder>
</mfrac>
</math>

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

View File

@ -5,3 +5,4 @@ asserts-if(Android,0-1) load 793844.html
skip-if(Android) load 1662259.html
skip-if(Android) load 1663722.html
skip-if(Android) load 1671503.html
asserts-if(!Android,1-1) load 1748277.html # Bug 1751260