Add support for minsize/maxsize attributes.
authorfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Feb 2014 06:52:37 +0000 (06:52 +0000)
committerfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Feb 2014 06:52:37 +0000 (06:52 +0000)
commitec54dba036fd7eb718b2411a9a2abad75c7d9a81
treec814ccbc2fcf34c89041de90122d606ccd38a342
parenteeb8714c2609a126d3e9010478664b193c4abc81
Add support for minsize/maxsize attributes.
https://bugs.webkit.org/show_bug.cgi?id=122567

Reviewed by Chris Fleizach.

Source/WebCore:

This change implements the minsize/maxsize attributes of the mo element.
We also switch stretch sizes from int to LayoutUnit to improve accuracy.

Tests: mathml/presentation/stretchy-minsize-maxsize-dynamic.html
       mathml/presentation/stretchy-minsize-maxsize.html

* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::SetOperatorProperties):
(WebCore::RenderMathMLOperator::stretchTo):
* rendering/mathml/RenderMathMLOperator.h:
* rendering/mathml/RenderMathMLRow.cpp:
(WebCore::RenderMathMLRow::layout):

LayoutTests:

Add some reftests for the minsize/maxsize attributes of the mo element.

* platform/mac/mathml/presentation/mo-stretch-expected.txt:
* mathml/presentation/stretchy-minsize-maxsize-dynamic-expected.html: Added.
* mathml/presentation/stretchy-minsize-maxsize-dynamic.html: Added.
* mathml/presentation/stretchy-minsize-maxsize-expected.html: Added.
* mathml/presentation/stretchy-minsize-maxsize.html: Added.

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