• commit-queue@webkit.org's avatar
    Add Support for the semantics element. · c2c226b5
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=100626
    
    Source/WebCore:
    
    Patch by Frédéric Wang <fred.wang@free.fr> on 2014-01-07
    Reviewed by Chris Fleizach.
    
    Tests: mathml/presentation/semantics-2.html
           mathml/presentation/semantics-3.html
           mathml/presentation/semantics-4.html
    
    This provides a complete support for the semantics element. When the first child is a content MathML, an annotation can be selected and displayed. The selection algorithm is identical to Gecko's one. The recognized annotations are text (e.g. LaTeX), presentation MathML, SVG and HTML.
    
    * mathml/MathMLElement.cpp:
    (WebCore::MathMLElement::childShouldCreateRenderer):
    (WebCore::MathMLElement::attributeChanged):
    (WebCore::MathMLElement::isPresentationMathML):
    * mathml/MathMLElement.h:
    (WebCore::MathMLElement::isMathMLToken):
    (WebCore::MathMLElement::isSemanticAnnotation):
    (WebCore::MathMLElement::isPresentationMathML):
    (WebCore::MathMLElement::updateSelectedChild):
    * mathml/MathMLInlineContainerElement.h:
    * mathml/MathMLSelectElement.cpp:
    (WebCore::MathMLSelectElement::getSelectedActionChildAndIndex):
    (WebCore::MathMLSelectElement::getSelectedActionChild):
    (WebCore::MathMLSelectElement::getSelectedSemanticsChild):
    (WebCore::MathMLSelectElement::updateSelectedChild):
    (WebCore::MathMLSelectElement::toggle):
    * mathml/MathMLSelectElement.h:
    * mathml/MathMLTextElement.h:
    * mathml/mathattrs.in:
    * mathml/mathtags.in:
    
    LayoutTests:
    
    Patch by Frédéric Wang <fred.wang@free.fr> on 2014-01-07
    Reviewed by Chris Fleizach.
    
    * TestExpectations:
    * mathml/presentation/semantics-2-expected.html: Added.
    * mathml/presentation/semantics-2.html: Added.
    * mathml/presentation/semantics-3-expected.html: Added.
    * mathml/presentation/semantics-3.html: Added.
    * mathml/presentation/semantics-4-expected.html: Added.
    * mathml/presentation/semantics-4.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c2c226b5
Name
Last commit
Last update
..
presentation Loading commit data...
EmptyMFracCrash-expected.txt Loading commit data...
EmptyMFracCrash.xhtml Loading commit data...
EmptyMunderOverCrash-expected.txt Loading commit data...
EmptyMunderOverCrash.xhtml Loading commit data...
arbitrary-markup-expected.txt Loading commit data...
arbitrary-markup.html Loading commit data...
empty-mroot-crash-expected.txt Loading commit data...
empty-mroot-crash.xhtml Loading commit data...
empty-msubsup-crash-expected.txt Loading commit data...
empty-msubsup-crash.html Loading commit data...
fenced-whitespace-separators-crash-expected.txt Loading commit data...
fenced-whitespace-separators-crash.html Loading commit data...
invalid-scripts-crash-expected.txt Loading commit data...
invalid-scripts-crash.html Loading commit data...
mfenced-root-layer-expected.txt Loading commit data...
mfenced-root-layer.html Loading commit data...
mn-as-list-item-assert-expected.txt Loading commit data...
mn-as-list-item-assert.html Loading commit data...
msub-anonymous-child-render-crash-expected.txt Loading commit data...
msub-anonymous-child-render-crash.html Loading commit data...
msubsup-fuzz-expected.txt Loading commit data...
msubsup-fuzz.html Loading commit data...
msubsup-no-grandchild-expected.txt Loading commit data...
msubsup-no-grandchild.xhtml Loading commit data...
msubsup-remove-children-expected.txt Loading commit data...
msubsup-remove-children.xhtml Loading commit data...
munderover-remove-children-expected.txt Loading commit data...
munderover-remove-children.html Loading commit data...
operator-hijacks-fenced-node-expected.txt Loading commit data...
operator-hijacks-fenced-node.xhtml Loading commit data...
scripts-addChild-expected.html Loading commit data...
scripts-addChild.html Loading commit data...
scripts-removeChild-expected.html Loading commit data...
scripts-removeChild.html Loading commit data...
very-large-stretchy-operators-expected.txt Loading commit data...
very-large-stretchy-operators.html Loading commit data...
wbr-in-mroot-crash-expected.txt Loading commit data...
wbr-in-mroot-crash.html Loading commit data...