<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[160005] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/160005">160005</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2013-12-03 09:12:38 -0800 (Tue, 03 Dec 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add an MathMLSelectElement class to implement &lt;maction&gt; and &lt;semantics&gt;.
&lt;https://webkit.org/b/120058&gt;

Patch by Frédéric Wang &lt;fred.wang@free.fr&gt; on 2013-12-03
Reviewed by Chris Fleizach.

Source/WebCore:

Tests: mathml/presentation/maction-dynamic.html
       mathml/presentation/maction.html
       mathml/presentation/semantics.html

This adds a new MathMLSelectElement class to prepare the implementation
of the &lt;maction&gt; and &lt;semantics&gt; elements, for which only one &quot;selected&quot;
child is visible. We now simply display the first child of the
&lt;semantics&gt; element instead of hiding the annotations and this allows to
handle the use case of SVG-in-MathML as generated by Instiki when
bug 124128 is fixed ; Gecko's selection algorithm will be implemented
later (bug 100626). We now also rely on the @actiontype and @selection
attributes to select the visible &lt;maction&gt; child ; It remains to deal
with the user interaction (bug 85734).

* CMakeLists.txt: add the new files.
* GNUmakefile.list.am: ditto
* Target.pri: ditto
* WebCore.vcxproj/WebCore.vcxproj: ditto
* WebCore.vcxproj/WebCore.vcxproj.filters: ditto
* WebCore.xcodeproj/project.pbxproj: ditto
* css/mathml.css: remove the CSS rule for annotation/annotation-xml.
* mathml/MathMLAllInOne.cpp: add the new cpp file.
* mathml/MathMLSelectElement.cpp: Added.
(WebCore::MathMLSelectElement::MathMLSelectElement):
(WebCore::MathMLSelectElement::create):
(WebCore::MathMLSelectElement::createRenderer):
(WebCore::MathMLSelectElement::childShouldCreateRenderer):
(WebCore::MathMLSelectElement::finishParsingChildren):
(WebCore::MathMLSelectElement::childrenChanged):
(WebCore::MathMLSelectElement::attributeChanged):
(WebCore::MathMLSelectElement::updateSelectedChild): basic implementation for maction, semantics, maction@actiontype and maction@selection.
* mathml/MathMLSelectElement.h: Added.
* mathml/mathattrs.in: add actiontype and selection attributes.
* mathml/mathtags.in: set element classes for maction, semantics, annotation and annotation-xml.

LayoutTests:

New tests for the selection of the visible child in the &lt;maction&gt; and &lt;semantics&gt; elements.

* mathml/presentation/maction-dynamic-expected.html: Added.
* mathml/presentation/maction-dynamic.html: Added.
* mathml/presentation/maction-expected.html: Added.
* mathml/presentation/maction.html: Added.
* mathml/presentation/semantics-expected.html: Added.
* mathml/presentation/semantics.html: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsTestExpectations">trunk/LayoutTests/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreGNUmakefilelistam">trunk/Source/WebCore/GNUmakefile.list.am</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxproj">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorecssmathmlcss">trunk/Source/WebCore/css/mathml.css</a></li>
<li><a href="#trunkSourceWebCoremathmlMathMLAllInOnecpp">trunk/Source/WebCore/mathml/MathMLAllInOne.cpp</a></li>
<li><a href="#trunkSourceWebCoremathmlMathMLElementh">trunk/Source/WebCore/mathml/MathMLElement.h</a></li>
<li><a href="#trunkSourceWebCoremathmlMathMLInlineContainerElementcpp">trunk/Source/WebCore/mathml/MathMLInlineContainerElement.cpp</a></li>
<li><a href="#trunkSourceWebCoremathmlmathattrsin">trunk/Source/WebCore/mathml/mathattrs.in</a></li>
<li><a href="#trunkSourceWebCoremathmlmathtagsin">trunk/Source/WebCore/mathml/mathtags.in</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsmathmlpresentationmactiondynamicexpectedhtml">trunk/LayoutTests/mathml/presentation/maction-dynamic-expected.html</a></li>
<li><a href="#trunkLayoutTestsmathmlpresentationmactiondynamichtml">trunk/LayoutTests/mathml/presentation/maction-dynamic.html</a></li>
<li><a href="#trunkLayoutTestsmathmlpresentationmactionexpectedhtml">trunk/LayoutTests/mathml/presentation/maction-expected.html</a></li>
<li><a href="#trunkLayoutTestsmathmlpresentationmactionhtml">trunk/LayoutTests/mathml/presentation/maction.html</a></li>
<li><a href="#trunkLayoutTestsmathmlpresentationsemanticsexpectedhtml">trunk/LayoutTests/mathml/presentation/semantics-expected.html</a></li>
<li><a href="#trunkLayoutTestsmathmlpresentationsemanticshtml">trunk/LayoutTests/mathml/presentation/semantics.html</a></li>
<li><a href="#trunkSourceWebCoremathmlMathMLSelectElementcpp">trunk/Source/WebCore/mathml/MathMLSelectElement.cpp</a></li>
<li><a href="#trunkSourceWebCoremathmlMathMLSelectElementh">trunk/Source/WebCore/mathml/MathMLSelectElement.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/LayoutTests/ChangeLog        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2013-12-03  Frédéric Wang  &lt;fred.wang@free.fr&gt;
+
+        Add an MathMLSelectElement class to implement &lt;maction&gt; and &lt;semantics&gt;.
+        &lt;https://webkit.org/b/120058&gt;
+
+        Reviewed by Chris Fleizach.
+
+        New tests for the selection of the visible child in the &lt;maction&gt; and &lt;semantics&gt; elements.
+
+        * mathml/presentation/maction-dynamic-expected.html: Added.
+        * mathml/presentation/maction-dynamic.html: Added.
+        * mathml/presentation/maction-expected.html: Added.
+        * mathml/presentation/maction.html: Added.
+        * mathml/presentation/semantics-expected.html: Added.
+        * mathml/presentation/semantics.html: Added.
+
</ins><span class="cx"> 2013-12-02  Samuel White  &lt;samuel_white@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         AX: Add AXUIElementCountForSearchPredicate parameterized attribute.
</span></span></pre></div>
<a id="trunkLayoutTestsTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/TestExpectations (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/TestExpectations        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/LayoutTests/TestExpectations        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -21,6 +21,9 @@
</span><span class="cx"> webkit.org/b/57700  mathml/presentation/row.xhtml [ Failure ]
</span><span class="cx"> webkit.org/b/57700  mathml/presentation/mo.xhtml [ Failure ]
</span><span class="cx"> 
</span><ins>+# MathML regression with foreign objects
+webkit.org/b/124128 mathml/presentation/semantics.html [ Skip ]
+
</ins><span class="cx"> # These conformace tests are no longer in sync with the latest specification
</span><span class="cx"> # and expect compareDocumentPosition() to return:
</span><span class="cx"> # DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | DOCUMENT_POSITION_DISCONNECTED
</span></span></pre></div>
<a id="trunkLayoutTestsmathmlpresentationmactiondynamicexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/mathml/presentation/maction-dynamic-expected.html (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/mathml/presentation/maction-dynamic-expected.html                                (rev 0)
+++ trunk/LayoutTests/mathml/presentation/maction-dynamic-expected.html        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;maction&lt;/title&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+
+    &lt;math&gt;
+      &lt;maction selection=&quot;3&quot; actiontype=&quot;tooltip&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;tooltip&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;statusline&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;2&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;4&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsmathmlpresentationmactiondynamichtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/mathml/presentation/maction-dynamic.html (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/mathml/presentation/maction-dynamic.html                                (rev 0)
+++ trunk/LayoutTests/mathml/presentation/maction-dynamic.html        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,84 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;maction&lt;/title&gt;
+    &lt;script type=&quot;text/javascript&quot;&gt;
+      var mathmlNS = &quot;http://www.w3.org/1998/Math/MathML&quot;;
+
+      function test()
+      {
+        var maction = document.getElementsByTagNameNS(mathmlNS, &quot;maction&quot;);
+
+        // Setting the actiontype attribute
+        maction[0].setAttribute(&quot;actiontype&quot;, &quot;tooltip&quot;);
+        maction[1].setAttribute(&quot;actiontype&quot;, &quot;tooltip&quot;);
+        maction[2].setAttribute(&quot;actiontype&quot;, &quot;statusline&quot;);
+        maction[3].removeAttribute(&quot;actiontype&quot;);
+
+        // Setting the selection attribute
+        maction[4].setAttribute(&quot;selection&quot;, &quot;2&quot;);
+        maction[5].setAttribute(&quot;selection&quot;, &quot;4&quot;);
+        maction[6].removeAttribute(&quot;selection&quot;);
+
+        // Setting the child list
+        maction[7].removeChild(maction[7].firstElementChild);
+        var e = maction[8].firstElementChild;
+        maction[8].insertBefore(e.cloneNode(true), e);
+      }
+    &lt;/script&gt;
+
+  &lt;/head&gt;
+  &lt;body onload=&quot;test()&quot;&gt;
+
+    &lt;!-- This test verifies which child of the maction element is selected after a DOM change. The page should render the same as the static version. --&gt;
+
+    &lt;math&gt;
+      &lt;maction selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;statusline&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+    &lt;math&gt;
+      &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+        &lt;mn&gt;1&lt;/mn&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mn&gt;3&lt;/mn&gt;&lt;mn&gt;4&lt;/mn&gt;
+      &lt;/maction&gt;
+    &lt;/math&gt;
+
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsmathmlpresentationmactionexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/mathml/presentation/maction-expected.html (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/mathml/presentation/maction-expected.html                                (rev 0)
+++ trunk/LayoutTests/mathml/presentation/maction-expected.html        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,116 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;maction&lt;/title&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;mrow&gt;
+        &lt;/mrow&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsmathmlpresentationmactionhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/mathml/presentation/maction.html (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/mathml/presentation/maction.html                                (rev 0)
+++ trunk/LayoutTests/mathml/presentation/maction.html        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,173 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;maction&lt;/title&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+
+    &lt;!-- This test verifies which child of the maction element is selected. --&gt;
+
+    &lt;!-- For the statusline action type, the first child should be visible and the selection attribute should be ignored. --&gt;
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;statusline&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;statusline&quot; selection=&quot;3&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;!-- For the tooltip action type, the first child should be visible and the selection attribute should be ignored. --&gt;
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;tooltip&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;tooltip&quot; selection=&quot;3&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;!-- For the toggle action type, we use the selection attribute to determine the selected child. --&gt;
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;3&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;!-- For any unknown action type, we use the selection attribute to determine the selected child. --&gt;
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;unknown&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;unknown&quot; selection=&quot;3&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;!-- actiontype is case-sensitive, TOOLTIP is treated as unknown --&gt;
+    &lt;p&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;TOOLTIP&quot; selection=&quot;2&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+    &lt;!-- Testing a couple of special values for the &quot;selection&quot; attribute --&gt;
+    &lt;p&gt;
+      &lt;!-- The selection attribute has data type xsd:positiveInteger
+           http://www.w3.org/TR/xmlschema-2/#positiveInteger --&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;+0003&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;!-- The MathML spec discourages the use of leading and trailing
+           whitespace, but they are not strictly prohibited. --&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;&amp;#x20;&amp;#x9;&amp;#xD;&amp;#xA;4&amp;#x20;&amp;#x9;&amp;#xD;&amp;#xA;&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;!-- The MathML spec suggests to rounded up or down to the closest value
+           within the allowed subset --&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;-5&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt; 
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;-1&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;0&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;2.25&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;5&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;8&quot;&gt;
+          &lt;mn&gt;1&lt;/mn&gt;
+          &lt;mn&gt;2&lt;/mn&gt;
+          &lt;mn&gt;3&lt;/mn&gt;
+          &lt;mn&gt;4&lt;/mn&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+      &lt;math&gt;
+        &lt;maction actiontype=&quot;toggle&quot; selection=&quot;1&quot;&gt;
+        &lt;/maction&gt;
+      &lt;/math&gt;
+    &lt;/p&gt;
+
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsmathmlpresentationsemanticsexpectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/mathml/presentation/semantics-expected.html (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/mathml/presentation/semantics-expected.html                                (rev 0)
+++ trunk/LayoutTests/mathml/presentation/semantics-expected.html        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;semantics&lt;/title&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+
+    &lt;math&gt;
+      &lt;mrow&gt;
+        &lt;mi&gt;x&lt;/mi&gt;
+      &lt;/mrow&gt;
+   &lt;/math&gt;
+
+  &lt;math&gt;
+    &lt;mrow&gt;
+      &lt;mspace width=&quot;20px&quot; height=&quot;20px&quot; mathbackground=&quot;red&quot;/&gt;
+    &lt;/mrow&gt;
+  &lt;/math&gt;
+
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsmathmlpresentationsemanticshtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/mathml/presentation/semantics.html (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/mathml/presentation/semantics.html                                (rev 0)
+++ trunk/LayoutTests/mathml/presentation/semantics.html        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;semantics&lt;/title&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+
+    &lt;!-- This verifies that annotations are not visible. --&gt;
+    &lt;math&gt;
+      &lt;semantics&gt;
+        &lt;mi&gt;x&lt;/mi&gt;
+        &lt;annotation encoding=&quot;TeX&quot;&gt;x&lt;/annotation&gt;
+        &lt;annotation encoding=&quot;StarMath 5.0&quot;&gt;x&lt;/annotation&gt;
+        &lt;annotation-xml encoding=&quot;MathML-Content&quot;&gt;&lt;ci&gt;x&lt;/ci&gt;&lt;/annotation-xml&gt;
+      &lt;/semantics&gt;
+   &lt;/math&gt;
+
+    &lt;!-- This is not valid MathML but has become a standard hack to include SVG in MathML because of Gecko's initial implementation. --&gt;
+  &lt;math&gt;
+    &lt;semantics&gt;
+      &lt;annotation-xml encoding=&quot;SVG1.1&quot;&gt;
+        &lt;svg width=&quot;20px&quot; height=&quot;20px&quot;&gt;
+          &lt;rect width=&quot;20px&quot; height=&quot;20px&quot; fill=&quot;red&quot; stroke=&quot;none&quot;/&gt;
+        &lt;/svg&gt;
+      &lt;/annotation-xml&gt;
+    &lt;/semantics&gt;
+  &lt;/math&gt;
+
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/CMakeLists.txt        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -1704,6 +1704,7 @@
</span><span class="cx">     mathml/MathMLElement.cpp
</span><span class="cx">     mathml/MathMLInlineContainerElement.cpp
</span><span class="cx">     mathml/MathMLMathElement.cpp
</span><ins>+    mathml/MathMLSelectElement.cpp
</ins><span class="cx">     mathml/MathMLTextElement.cpp
</span><span class="cx"> 
</span><span class="cx">     page/AutoscrollController.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/ChangeLog        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -1,3 +1,45 @@
</span><ins>+2013-12-03  Frédéric Wang  &lt;fred.wang@free.fr&gt;
+
+        Add an MathMLSelectElement class to implement &lt;maction&gt; and &lt;semantics&gt;.
+        &lt;https://webkit.org/b/120058&gt;
+
+        Reviewed by Chris Fleizach.
+
+        Tests: mathml/presentation/maction-dynamic.html
+               mathml/presentation/maction.html
+               mathml/presentation/semantics.html
+
+        This adds a new MathMLSelectElement class to prepare the implementation
+        of the &lt;maction&gt; and &lt;semantics&gt; elements, for which only one &quot;selected&quot;
+        child is visible. We now simply display the first child of the
+        &lt;semantics&gt; element instead of hiding the annotations and this allows to
+        handle the use case of SVG-in-MathML as generated by Instiki when
+        bug 124128 is fixed ; Gecko's selection algorithm will be implemented
+        later (bug 100626). We now also rely on the @actiontype and @selection
+        attributes to select the visible &lt;maction&gt; child ; It remains to deal
+        with the user interaction (bug 85734).
+
+        * CMakeLists.txt: add the new files.
+        * GNUmakefile.list.am: ditto
+        * Target.pri: ditto
+        * WebCore.vcxproj/WebCore.vcxproj: ditto
+        * WebCore.vcxproj/WebCore.vcxproj.filters: ditto
+        * WebCore.xcodeproj/project.pbxproj: ditto
+        * css/mathml.css: remove the CSS rule for annotation/annotation-xml.
+        * mathml/MathMLAllInOne.cpp: add the new cpp file.
+        * mathml/MathMLSelectElement.cpp: Added.
+        (WebCore::MathMLSelectElement::MathMLSelectElement):
+        (WebCore::MathMLSelectElement::create):
+        (WebCore::MathMLSelectElement::createRenderer):
+        (WebCore::MathMLSelectElement::childShouldCreateRenderer):
+        (WebCore::MathMLSelectElement::finishParsingChildren):
+        (WebCore::MathMLSelectElement::childrenChanged):
+        (WebCore::MathMLSelectElement::attributeChanged):
+        (WebCore::MathMLSelectElement::updateSelectedChild): basic implementation for maction, semantics, maction@actiontype and maction@selection.
+        * mathml/MathMLSelectElement.h: Added.
+        * mathml/mathattrs.in: add actiontype and selection attributes.
+        * mathml/mathtags.in: set element classes for maction, semantics, annotation and annotation-xml.
+
</ins><span class="cx"> 2013-12-03  Thiago de Barros Lacerda  &lt;thiago.lacerda@openbossa.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Nix Upstream: Adding missing nix new files to WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreGNUmakefilelistam"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/GNUmakefile.list.am (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/GNUmakefile.list.am        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/GNUmakefile.list.am        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -4050,6 +4050,8 @@
</span><span class="cx">         Source/WebCore/mathml/MathMLInlineContainerElement.h  \
</span><span class="cx">         Source/WebCore/mathml/MathMLMathElement.cpp \
</span><span class="cx">         Source/WebCore/mathml/MathMLMathElement.h \
</span><ins>+        Source/WebCore/mathml/MathMLSelectElement.cpp \
+        Source/WebCore/mathml/MathMLSelectElement.h  \
</ins><span class="cx">         Source/WebCore/mathml/MathMLTextElement.cpp \
</span><span class="cx">         Source/WebCore/mathml/MathMLTextElement.h \
</span><span class="cx">         Source/WebCore/page/animation/AnimationBase.cpp \
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -18040,6 +18040,14 @@
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><ins>+    &lt;ClCompile Include=&quot;..\mathml\MathMLSelectElement.cpp&quot;&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+      &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Production|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
+    &lt;/ClCompile&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;..\mathml\MathMLTextElement.cpp&quot;&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|Win32'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="cx">       &lt;ExcludedFromBuild Condition=&quot;'$(Configuration)|$(Platform)'=='Release|x64'&quot;&gt;true&lt;/ExcludedFromBuild&gt;
</span><span class="lines">@@ -20976,6 +20984,7 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\mathml\MathMLElement.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\mathml\MathMLInlineContainerElement.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\mathml\MathMLMathElement.h&quot; /&gt;
</span><ins>+    &lt;ClInclude Include=&quot;..\mathml\MathMLSelectElement.h&quot; /&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;..\mathml\MathMLTextElement.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\editing\AlternativeTextController.h&quot; /&gt;
</span><span class="cx">     &lt;ClInclude Include=&quot;..\config.h&quot; /&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -4977,6 +4977,9 @@
</span><span class="cx">     &lt;ClCompile Include=&quot;..\mathml\MathMLMathElement.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;rendering\mathml&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><ins>+    &lt;ClCompile Include=&quot;..\mathml\MathMLSelectElement.cpp&quot;&gt;
+      &lt;Filter&gt;rendering\mathml&lt;/Filter&gt;
+    &lt;/ClCompile&gt;
</ins><span class="cx">     &lt;ClCompile Include=&quot;..\mathml\MathMLTextElement.cpp&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;rendering\mathml&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClCompile&gt;
</span><span class="lines">@@ -12549,6 +12552,9 @@
</span><span class="cx">     &lt;ClInclude Include=&quot;..\mathml\MathMLMathElement.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;rendering\mathml&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span><ins>+    &lt;ClInclude Include=&quot;..\mathml\MathMLSelectElement.h&quot;&gt;
+      &lt;Filter&gt;rendering\mathml&lt;/Filter&gt;
+    &lt;/ClInclude&gt;
</ins><span class="cx">     &lt;ClInclude Include=&quot;..\mathml\MathMLTextElement.h&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;rendering\mathml&lt;/Filter&gt;
</span><span class="cx">     &lt;/ClInclude&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -6310,6 +6310,7 @@
</span><span class="cx">                 FEBC5F3116BD0CC300659BD3 /* DatabaseBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FEBC5F2F16BD0CC300659BD3 /* DatabaseBase.cpp */; };
</span><span class="cx">                 FEBC5F3216BD0CC300659BD3 /* DatabaseBase.h in Headers */ = {isa = PBXBuildFile; fileRef = FEBC5F3016BD0CC300659BD3 /* DatabaseBase.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 FED13D3A0CEA934600D89466 /* EditorIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = FED13D390CEA934600D89466 /* EditorIOS.mm */; };
</span><ins>+                FED48390CED66C3255F72C59 /* MathMLSelectElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F75A059AF170D8FAA5B8CABE /* MathMLSelectElement.cpp */; };
</ins><span class="cx">                 FEDBFF16182B7A8D0017FA64 /* BreakpointID.h in Headers */ = {isa = PBXBuildFile; fileRef = FEDBFF14182B7A8D0017FA64 /* BreakpointID.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 FEDEF84116797108000E444A /* DatabaseStrategy.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FEDEF83F16797108000E444A /* DatabaseStrategy.cpp */; };
</span><span class="cx">                 FEDEF84216797108000E444A /* DatabaseStrategy.h in Headers */ = {isa = PBXBuildFile; fileRef = FEDEF84016797108000E444A /* DatabaseStrategy.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -8654,6 +8655,7 @@
</span><span class="cx">                 59309A1211F4AE6A00250603 /* DeviceOrientationClientMock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DeviceOrientationClientMock.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 5958F1CB1343917C0080B31F /* XMLViewer.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = XMLViewer.css; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 5958F1CC1343917C0080B31F /* XMLViewer.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = XMLViewer.js; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                59780849D41E6F65D81198BC /* MathMLSelectElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MathMLSelectElement.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 598365DC1355F53C001B185D /* JSPositionCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSPositionCallback.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 598365DE1355F562001B185D /* JSPositionErrorCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSPositionErrorCallback.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 598365E31355F604001B185D /* JSPositionCallback.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSPositionCallback.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -13142,6 +13144,7 @@
</span><span class="cx">                 F5C2869502846DCD018635CA /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = &quot;&lt;absolute&gt;&quot;; };
</span><span class="cx">                 F5E0C6591643C42C00D6CB69 /* BaseChooserOnlyDateAndTimeInputType.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = BaseChooserOnlyDateAndTimeInputType.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 F5E0C65A1643C42C00D6CB69 /* BaseChooserOnlyDateAndTimeInputType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BaseChooserOnlyDateAndTimeInputType.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><ins>+                F75A059AF170D8FAA5B8CABE /* MathMLSelectElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MathMLSelectElement.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</ins><span class="cx">                 F7A034C3126BF6BE007DC19E /* FontOrientation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FontOrientation.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 F8216299029F4FB501000131 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = JavaScriptCore.framework; sourceTree = BUILT_PRODUCTS_DIR; };
</span><span class="cx">                 F916C48B0DB510F80076CD83 /* JSXMLHttpRequestProgressEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSXMLHttpRequestProgressEvent.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -21643,6 +21646,8 @@
</span><span class="cx">                                 FABE72F01059C1EB00D999DD /* MathMLInlineContainerElement.h */,
</span><span class="cx">                                 FABE72F11059C1EB00D999DD /* MathMLMathElement.cpp */,
</span><span class="cx">                                 FABE72F21059C1EB00D999DD /* MathMLMathElement.h */,
</span><ins>+                                F75A059AF170D8FAA5B8CABE /* MathMLSelectElement.cpp */,
+                                59780849D41E6F65D81198BC /* MathMLSelectElement.h */,
</ins><span class="cx">                                 FA654A691108ABED002615E0 /* MathMLTextElement.cpp */,
</span><span class="cx">                                 FA654A6A1108ABED002615E0 /* MathMLTextElement.h */,
</span><span class="cx">                                 FABE72F31059C1EB00D999DD /* mathtags.in */,
</span><span class="lines">@@ -25675,6 +25680,7 @@
</span><span class="cx">                                 FD31608512B026F700C1A359 /* AudioResampler.cpp in Sources */,
</span><span class="cx">                                 FD31608712B026F700C1A359 /* AudioResamplerKernel.cpp in Sources */,
</span><span class="cx">                                 FD8C46EB154608E700A5910C /* AudioScheduledSourceNode.cpp in Sources */,
</span><ins>+                                FED48390CED66C3255F72C59 /* MathMLSelectElement.cpp in Sources */,
</ins><span class="cx">                                 078E090317D14CEE00420AA1 /* MediaStreamTrackEvent.cpp in Sources */,
</span><span class="cx">                                 CDA79824170A258300D45C55 /* AudioSession.cpp in Sources */,
</span><span class="cx">                                 CDA79827170A279100D45C55 /* AudioSessionIOS.mm in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCorecssmathmlcss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/mathml.css (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/mathml.css        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/css/mathml.css        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -153,10 +153,6 @@
</span><span class="cx">     font-size: 1.5em;
</span><span class="cx"> }
</span><span class="cx">  
</span><del>-annotation, annotation-xml {
-    display: none;
-}
-
</del><span class="cx"> mphantom {
</span><span class="cx">     visibility: hidden;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoremathmlMathMLAllInOnecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/mathml/MathMLAllInOne.cpp (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/MathMLAllInOne.cpp        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/mathml/MathMLAllInOne.cpp        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -28,5 +28,6 @@
</span><span class="cx"> #include &quot;MathMLElement.cpp&quot;
</span><span class="cx"> #include &quot;MathMLInlineContainerElement.cpp&quot;
</span><span class="cx"> #include &quot;MathMLMathElement.cpp&quot;
</span><ins>+#include &quot;MathMLSelectElement.cpp&quot;
</ins><span class="cx"> #include &quot;MathMLTextElement.cpp&quot;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoremathmlMathMLElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/mathml/MathMLElement.h (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/MathMLElement.h        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/mathml/MathMLElement.h        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -45,13 +45,12 @@
</span><span class="cx">     MathMLElement(const QualifiedName&amp; tagName, Document&amp;);
</span><span class="cx"> 
</span><span class="cx">     virtual void parseAttribute(const QualifiedName&amp;, const AtomicString&amp;) OVERRIDE;
</span><ins>+    virtual bool childShouldCreateRenderer(const Node&amp;) const OVERRIDE;
</ins><span class="cx"> 
</span><span class="cx"> private:    
</span><span class="cx">     virtual bool isPresentationAttribute(const QualifiedName&amp;) const OVERRIDE;
</span><span class="cx">     virtual void collectStyleForPresentationAttribute(const QualifiedName&amp;, const AtomicString&amp;, MutableStyleProperties&amp;) OVERRIDE;
</span><span class="cx"> 
</span><del>-    virtual bool childShouldCreateRenderer(const Node&amp;) const OVERRIDE;
-
</del><span class="cx">     inline bool isMathMLToken() const;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoremathmlMathMLInlineContainerElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/mathml/MathMLInlineContainerElement.cpp (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/MathMLInlineContainerElement.cpp        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/mathml/MathMLInlineContainerElement.cpp        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -56,6 +56,8 @@
</span><span class="cx"> 
</span><span class="cx"> RenderElement* MathMLInlineContainerElement::createRenderer(PassRef&lt;RenderStyle&gt; style)
</span><span class="cx"> {
</span><ins>+    if (hasLocalName(annotation_xmlTag))
+        return new RenderMathMLRow(*this, std::move(style));
</ins><span class="cx">     if (hasLocalName(mrowTag))
</span><span class="cx">         return new RenderMathMLRow(*this, std::move(style));
</span><span class="cx">     if (hasLocalName(msubTag))
</span></span></pre></div>
<a id="trunkSourceWebCoremathmlMathMLSelectElementcpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/mathml/MathMLSelectElement.cpp (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/MathMLSelectElement.cpp                                (rev 0)
+++ trunk/Source/WebCore/mathml/MathMLSelectElement.cpp        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,122 @@
</span><ins>+/*
+ * Copyright (C) 2013 The MathJax Consortium. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include &quot;config.h&quot;
+#include &quot;MathMLSelectElement.h&quot;
+
+#if ENABLE(MATHML)
+
+#include &quot;MathMLNames.h&quot;
+#include &quot;RenderMathMLRow.h&quot;
+
+namespace WebCore {
+
+using namespace MathMLNames;
+
+MathMLSelectElement::MathMLSelectElement(const QualifiedName&amp; tagName, Document&amp; document)
+    : MathMLInlineContainerElement(tagName, document)
+    , m_selectedChild(nullptr)
+{
+}
+
+PassRefPtr&lt;MathMLSelectElement&gt; MathMLSelectElement::create(const QualifiedName&amp; tagName, Document&amp; document)
+{
+    return adoptRef(new MathMLSelectElement(tagName, document));
+}
+
+RenderElement* MathMLSelectElement::createRenderer(PassRef&lt;RenderStyle&gt; style)
+{
+    return new RenderMathMLRow(*this, std::move(style));
+}
+
+bool MathMLSelectElement::childShouldCreateRenderer(const Node&amp; child) const
+{
+    return MathMLElement::childShouldCreateRenderer(child) &amp;&amp; m_selectedChild == &amp;child;
+}
+
+void MathMLSelectElement::finishParsingChildren()
+{
+    updateSelectedChild();
+    MathMLInlineContainerElement::finishParsingChildren();
+}
+
+void MathMLSelectElement::childrenChanged(const ChildChange&amp; change)
+{
+    updateSelectedChild();
+    MathMLInlineContainerElement::childrenChanged(change);
+}
+
+void MathMLSelectElement::attributeChanged(const QualifiedName&amp; name, const AtomicString&amp; newValue, AttributeModificationReason reason)
+{
+    if (hasLocalName(mactionTag) &amp;&amp; (name == MathMLNames::actiontypeAttr || name == MathMLNames::selectionAttr))
+        updateSelectedChild();
+
+    MathMLInlineContainerElement::attributeChanged(name, newValue, reason);
+}
+
+void MathMLSelectElement::updateSelectedChild()
+{
+    Element* newSelectedChild = firstElementChild();
+
+    if (newSelectedChild) {
+        if (hasLocalName(mactionTag)) {
+            // The value of the actiontype attribute is case-sensitive.
+            const AtomicString&amp; actiontype = fastGetAttribute(MathMLNames::actiontypeAttr);
+            if (actiontype == &quot;statusline&quot;)
+                // FIXME: implement user interaction for the &quot;statusline&quot; action type (http://wkbug/124922).
+                { }
+            else if (actiontype == &quot;tooltip&quot;)
+                // FIXME: implement user interaction for the &quot;tooltip&quot; action type (http://wkbug/124921).
+                { }
+            else {
+                // FIXME: implement user interaction for the &quot;toggle&quot; action type (http://wkbug/120059).
+                // For the &quot;toggle&quot; action type or any unknown action type, we rely on the value of the selection attribute to determine the visible child.
+                int selection = fastGetAttribute(MathMLNames::selectionAttr).toInt();
+                for (int i = 1; i &lt; selection; i++) {
+                    Element* nextChild = newSelectedChild-&gt;nextElementSibling();
+                    if (!nextChild)
+                        break;
+                    newSelectedChild = nextChild;
+                }
+            }
+        } else {
+            ASSERT(hasLocalName(semanticsTag));
+            // FIXME: implement Gecko's selection algorithm for &lt;semantics&gt; (http://wkbug/100626).
+        }
+    }
+
+    if (m_selectedChild == newSelectedChild)
+        return;
+
+    if (m_selectedChild &amp;&amp; m_selectedChild-&gt;renderer())
+        Style::detachRenderTree(*m_selectedChild);
+
+    m_selectedChild = newSelectedChild;
+    setNeedsStyleRecalc();
+}
+
+}
+
+#endif // ENABLE(MATHML)
</ins></span></pre></div>
<a id="trunkSourceWebCoremathmlMathMLSelectElementhfromrev160004trunkSourceWebCoremathmlMathMLElementh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/mathml/MathMLSelectElement.h (from rev 160004, trunk/Source/WebCore/mathml/MathMLElement.h) (0 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/MathMLSelectElement.h                                (rev 0)
+++ trunk/Source/WebCore/mathml/MathMLSelectElement.h        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+/*
+ * Copyright (C) 2013 The MathJax Consortium. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef MathMLSelectElement_h
+#define MathMLSelectElement_h
+
+#if ENABLE(MATHML)
+#include &quot;MathMLInlineContainerElement.h&quot;
+
+namespace WebCore {
+
+class MathMLSelectElement FINAL : public MathMLInlineContainerElement {
+public:
+    static PassRefPtr&lt;MathMLSelectElement&gt; create(const QualifiedName&amp; tagName, Document&amp;);
+
+private:
+    MathMLSelectElement(const QualifiedName&amp; tagName, Document&amp;);
+    virtual RenderElement* createRenderer(PassRef&lt;RenderStyle&gt;) OVERRIDE;
+
+    virtual bool childShouldCreateRenderer(const Node&amp;) const OVERRIDE;
+
+    virtual void finishParsingChildren() OVERRIDE;
+    virtual void childrenChanged(const ChildChange&amp;) OVERRIDE;
+    virtual void attributeChanged(const QualifiedName&amp;, const AtomicString&amp;, AttributeModificationReason = ModifiedDirectly) OVERRIDE;
+
+    void updateSelectedChild();
+    Element* m_selectedChild;
+};
+
+}
+
+#endif // ENABLE(MATHML)
+#endif // MathMLSelectElement_h
</ins></span></pre></div>
<a id="trunkSourceWebCoremathmlmathattrsin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/mathml/mathattrs.in (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/mathattrs.in        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/mathml/mathattrs.in        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -3,6 +3,7 @@
</span><span class="cx"> guardFactoryWith=&quot;ENABLE(MATHML)&quot;
</span><span class="cx"> attrsNullNamespace
</span><span class="cx"> 
</span><ins>+actiontype
</ins><span class="cx"> alttext
</span><span class="cx"> background
</span><span class="cx"> close
</span><span class="lines">@@ -26,6 +27,7 @@
</span><span class="cx"> numalign
</span><span class="cx"> open
</span><span class="cx"> rowspan
</span><ins>+selection
</ins><span class="cx"> separators
</span><span class="cx"> stretchy
</span><span class="cx"> subscriptshift
</span></span></pre></div>
<a id="trunkSourceWebCoremathmlmathtagsin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/mathml/mathtags.in (160004 => 160005)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/mathml/mathtags.in        2013-12-03 17:09:54 UTC (rev 160004)
+++ trunk/Source/WebCore/mathml/mathtags.in        2013-12-03 17:12:38 UTC (rev 160005)
</span><span class="lines">@@ -3,6 +3,9 @@
</span><span class="cx"> guardFactoryWith=&quot;ENABLE(MATHML)&quot;
</span><span class="cx"> fallbackInterfaceName=&quot;MathMLElement&quot;
</span><span class="cx"> 
</span><ins>+annotation interfaceName=MathMLTextElement
+annotation-xml interfaceName=MathMLInlineContainerElement
+maction interfaceName=MathMLSelectElement
</ins><span class="cx"> math
</span><span class="cx"> mfrac interfaceName=MathMLInlineContainerElement
</span><span class="cx"> mfenced interfaceName=MathMLInlineContainerElement
</span><span class="lines">@@ -27,10 +30,10 @@
</span><span class="cx"> mmultiscripts interfaceName=MathMLInlineContainerElement
</span><span class="cx"> mprescripts interfaceName=MathMLInlineContainerElement
</span><span class="cx"> none interfaceName=MathMLInlineContainerElement
</span><ins>+semantics interfaceName=MathMLSelectElement
</ins><span class="cx"> 
</span><span class="cx"> #if 0 // Curently only for MathMLNames used by HTMLTreeBuilder.
</span><span class="cx"> ms
</span><span class="cx"> mglyph
</span><span class="cx"> malignmark
</span><del>-annotation-xml
</del><span class="cx"> #endif
</span></span></pre>
</div>
</div>

</body>
</html>