Implement asymmetric/symmetric stretching of vertical operators.
authorfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Feb 2014 10:14:41 +0000 (10:14 +0000)
committerfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Feb 2014 10:14:41 +0000 (10:14 +0000)
commit126e566ea784efa2b9783bcbd2344e4de39363dc
treeb682b031550e9cb254f686aac28cdcf285509d90
parentf52ce7d4a363e70cc8e8e4b5ea9287466873011b
Implement asymmetric/symmetric stretching of vertical operators.
https://bugs.webkit.org/show_bug.cgi?id=124827.

Reviewed by Chris Fleizach.

Source/WebCore:

The MathML code stretches vertical operators asymmetrically by default. This patch takes into account the symmetric attribute or the symmetric property of the operator dictionary to stretch operators symmetrically.

Test: mathml/presentation/stretchy-depth-height-symmetric.html

* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::stretchTo):
(WebCore::RenderMathMLOperator::updateFromElement):
(WebCore::RenderMathMLOperator::updateStyle):

LayoutTests:

Add a new test to verify the symmetric property of operators (either implicit by the operator dictionary or explicit via an mo attribute).

* LayoutTests/platform/mac/mathml/presentation/mo-stretch-expected.txt: rebased.
* mathml/presentation/stretchy-depth-height-symmetric-expected.txt: Added.
* mathml/presentation/stretchy-depth-height-symmetric.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/mathml/presentation/stretchy-depth-height-symmetric-expected.txt [new file with mode: 0644]
LayoutTests/mathml/presentation/stretchy-depth-height-symmetric.html [new file with mode: 0644]
LayoutTests/platform/mac/mathml/presentation/mo-stretch-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp