Bug 947557 - Call DidReflow() on <mprescripts/> frame. r=fredw

This commit is contained in:
James Kitchener 2014-04-01 02:56:00 +02:00
parent e717247ca9
commit 822522fb53
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,21 @@
<!doctype html>
<body>
<math>
<mmultiscripts>
<mo>A</mo>
<mprescripts/>
<mmultiscripts>
<mo>A</mo>
<mprescripts/>
<mo>A</mo>
<mo>A</mo>
</mmultiscripts>
<mmultiscripts>
<mo>A</mo>
<mprescripts/>
<mo>A</mo>
<mo>A</mo>
</mmultiscripts>
</mmultiscripts>
</math>
</body>

View File

@ -58,4 +58,5 @@ load 654928-1.html
load 655451-1.xhtml
load 713606-1.html
load 716349-1.html
load 947557-1.html
test-pref(layout.css.sticky.enabled,true) asserts(1) load 973322-1.xhtml

View File

@ -571,7 +571,10 @@ nsMathMLmmultiscriptsFrame::PlaceMultiScript(nsPresContext* aPresContext,
dx),
dy, 0);
dx += bmBase.width;
} else if (prescriptsFrame != childFrame) {
} else if (prescriptsFrame == childFrame) {
// Clear reflow flags of prescripts frame.
prescriptsFrame->DidReflow(aPresContext, nullptr, nsDidReflowStatus::FINISHED);
} else {
// process each sup/sub pair
if (0 == count) {
subScriptFrame = childFrame;