Bug 669719 - support the displaystyle attribute on the <math/> element. r=roc

This commit is contained in:
Jonathan Hage 2011-07-09 15:52:19 +02:00
parent 73d898ef1e
commit c23d593b9a
4 changed files with 26 additions and 0 deletions

View File

@ -219,6 +219,7 @@ nsMathMLFrame::GetPresentationDataFrom(nsIFrame* aFrame,
if (display->mDisplay == NS_STYLE_DISPLAY_BLOCK) {
aPresentationData.flags |= NS_MATHML_DISPLAYSTYLE;
}
FindAttrDisplaystyle(content, aPresentationData);
aPresentationData.mstyle = frame->GetFirstContinuation();
break;
}

View File

@ -0,0 +1,13 @@
<html>
<body>
<math>
<mstyle displaystyle="true">
<munderover>
<mo>&sum;</mo>
<mi>b</mi>
<mi>c</mi>
</munderover>
</mstyle>
</math>
</body>
</html>

View File

@ -0,0 +1,11 @@
<html>
<body>
<math displaystyle="true">
<munderover>
<mo>&sum;</mo>
<mi>b</mi>
<mi>c</mi>
</munderover>
</math>
</body>
</html>

View File

@ -67,6 +67,7 @@ fails == mstyle-5.xhtml mstyle-5-ref.xhtml # See bug 569125#c29
== mpadded-5.html mpadded-5-ref.html
== mpadded-1-2.html mpadded-1-2-ref.html
== mpadded-6.html mpadded-6-ref.html
== math-display.html math-display-ref.html
== mfrac-linethickness-1.xhtml mfrac-linethickness-1-ref.xhtml
== mathml-negativespace.html mathml-negativespace-ref.html
!= link-1.xhtml link-ref.xhtml