mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
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:
parent
ef630bb992
commit
1ab64170cd
@ -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);
|
||||
}
|
||||
|
26
layout/printing/crashtests/1748277.html
Normal file
26
layout/printing/crashtests/1748277.html
Normal 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>
|
BIN
layout/printing/crashtests/1748277.png
Normal file
BIN
layout/printing/crashtests/1748277.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 228 B |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user