<!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>[202973] 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/202973">202973</a></dd>
<dt>Author</dt> <dd>fred.wang@free.fr</dd>
<dt>Date</dt> <dd>2016-07-08 02:37:57 -0700 (Fri, 08 Jul 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use OpenType MATH constant AxisHeight.
https://bugs.webkit.org/show_bug.cgi?id=133567

Patch by Frederic Wang &lt;fwang@igalia.com&gt; on 2016-07-08
Reviewed by Brent Fulgham.

Source/WebCore:

We make RenderMathMLOperator and RenderMathMLTable use the OpenType MATH constant AxisHeight.
These are the only remaining cases to handle since RenderMathMLFraction already uses that constant.

Tests: imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html
      imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html

* rendering/mathml/RenderMathMLBlock.cpp: Make RenderMathMLTable use the math axis
for its vertical alignment and update a bit the comments.
(WebCore::axisHeight): Move the code in a static function that can be called by
RenderMathMLBlock and RenderMathMLTable.
(WebCore::RenderMathMLBlock::mathAxisHeight): Use axisHeight.
(WebCore::RenderMathMLTable::firstLineBaseline): Ditto.
* rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::stretchTo):

LayoutTests:

Import tests from the MathML in HTML5 test suite to verify the AxisHeight parameter.

* imported/mathml-in-html5/fonts/math/axisheight5000-verticalarrow14000.woff: Added.
* imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1-expected.txt: Added.
* imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html: Added.
* imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html: Added.
* imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-expected.txt: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformgtkmathmlopentypeverticalexpectedpng">trunk/LayoutTests/platform/gtk/mathml/opentype/vertical-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtkmathmlopentypeverticalexpectedtxt">trunk/LayoutTests/platform/gtk/mathml/opentype/vertical-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformgtkmathmlpresentationmostretchexpectedpng">trunk/LayoutTests/platform/gtk/mathml/presentation/mo-stretch-expected.png</a></li>
<li><a href="#trunkLayoutTestsplatformgtkmathmlpresentationmostretchexpectedtxt">trunk/LayoutTests/platform/gtk/mathml/presentation/mo-stretch-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorerenderingmathmlRenderMathMLBlockcpp">trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingmathmlRenderMathMLOperatorcpp">trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5fontsmathaxisheight5000verticalarrow14000woff">trunk/LayoutTests/imported/mathml-in-html5/fonts/math/axisheight5000-verticalarrow14000.woff</a></li>
<li>trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/</li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupoperatorsmoaxisheight1expectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupoperatorsmoaxisheight1html">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html</a></li>
<li>trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/</li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkuptablestableaxisheightexpectedtxt">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkuptablestableaxisheighthtml">trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (202972 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-07-08 08:57:50 UTC (rev 202972)
+++ trunk/LayoutTests/ChangeLog        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2016-07-08  Frederic Wang  &lt;fwang@igalia.com&gt;
+
+        Use OpenType MATH constant AxisHeight.
+        https://bugs.webkit.org/show_bug.cgi?id=133567
+
+        Reviewed by Brent Fulgham.
+
+        Import tests from the MathML in HTML5 test suite to verify the AxisHeight parameter.
+
+        * imported/mathml-in-html5/fonts/math/axisheight5000-verticalarrow14000.woff: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1-expected.txt: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html: Added.
+        * imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-expected.txt: Added.
+
</ins><span class="cx"> 2016-07-08  Manuel Rego Casasnovas  &lt;rego@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [css-grid] Disallow repeat() in grid-template shorthand
</span></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5fontsmathaxisheight5000verticalarrow14000woff"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/fonts/math/axisheight5000-verticalarrow14000.woff (0 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/fonts/math/axisheight5000-verticalarrow14000.woff                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/fonts/math/axisheight5000-verticalarrow14000.woff        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+wOFFOTTO         hCFF Tn\xC1\x8EFFTMhyȐ\xACMATH\x84\x81hTK&quot;OS/2\@`\xF81\x92cmap\xFC@JCB\xE2Phead.6        \xBA\xE0\xD1hhea8$=\xEBhmtx\xD0maxpTPname\x9C^x\x98\xB7\xAF$post&lt; \xFF\x863x\x9Cc`d``b妺M\xF1\xFC6_\xB8\x99_E.G\x99\xCCC\xA6\x99_\x98mR L ,\xA8
+Fx\x9Cc`d``~\xC1\xC0\xC0\x90&amp;AlFT\xC0P\xA02Px\x9Cc`a~\xC18\x81\x81\x95\x81\x81\x99\x87ك\x81\x81a\x84fr`\xB0f4\xD2 \xAC\x9C 0\xC0\xC4
+ Ƞ\x81AAq\xF3  +I+(!#\x81\xA3\xC9x\x9C\xBD\x91Kj\xC30E\xAF\x9Dt\xD2\xDF
+h!8H&amp;\xC9 \xD0AȠ$\xA3B\xE6\xC65\xB1 DA6\xF9t\xDDGGv\xDD@WSz\xAD\x88\x8C
+-j!t\xF4|\xDF\xD5\xD3\x80s\xBC&quot;\xC0\xF1\xBB\xC5\xCCs\x80\xDE&lt;\x87\xB8Ƨ\xE7\xEE\x82g\xCFu\xB4\xC2 \xCF+\\x86\x9E\x9B\x8C\xBFP\xD4ϸ\xBBwY\xC3zq\x83\xCF5&lt;W\x9E\xEB\xEF\x9E\xA1\xF2\xDC\xC48|\xC4袱D\x8Em\xA4\xE8p\x8D!\xA10 ͑\xF0O\xCEu\xC6\xDD\x87\xA1J\xBB\xB8&amp;\xAF\x81\x89\xD9\xAC^\xE6\xA5h\xA7K5\xF3\xA4\xCC\xE731*
+\x93\xEA\xA4Ԇ\xB2{ft\xCBNg\xF6yR5&quot;l\xB5\xCE3\xA5r\xC5i9 v\xAC\xA4\xE7UH\xF6\xBAȳ꨾\x942\xDAf\xB6\xD4i\xB2J\xAC5;\xD5c\xBF\xF3\xF9.q\xEA.S\xBAղ\xBC\xCC5\xA2K\xB9\xC0\x90\xF3\xEF\xE5}]#fF\xA76cj\xD6\xE5\xD4\xD8e&amp;\xE2\xAEC\xF1\xE35\xA9Qqԏ\xAA^\xFFWcΧ\xF0\x8F.\\x9Er\xFD9\xDE+\x8B\xCC|h!\xA5\xEAV5\xFESa_,ʣ\xA5x\x9Cc```f\x80`Fp\xF2\xC1|+ \xCD\xA4\x98W\xFC\xFF\xE4\x83\xE9\xFF\xEFEA\xD5#\x82\x83\x92\xEA\x98n        \xB1x\x9Cc`f\x83\xFF\xCD F@\x8A\x91+(U\xB9x\x9Ccd`aa`ddTJ\xAC\xC8,\xCEH\xCDL\xCF(1500\xD0-K-*\xC9LN\xCCI,*\xCA/74
+102102\xE8\xFD\xE0g\xF8!\xC7\xF8C\x9E\xE9\x87\xF3        \x96\xC6\xEE\xEE_52fXe\xDE\xF1\xCB00\xC80|\x94a\x93a\x8Cb`\xE9\xE1ebg\xB0a\x88e\xA8WZ\x90\x92\x97T\x9CZ\x9CY\x95j&quot;\x8C\x9C\xF3 *\x8B@V+h$k*\x9A)\xF8&amp;\x96d\xF8\xFA(8\xE7'g&amp;\x96d\xE6\xE7t a#c;cc'+\xD0\xCBʦ\xEE\x91\xDD{\x9C\xDA˸w\xEF\xCF-{\x99\xF7\x8A\xFD\x92\xF8\xA9\xF7O\x82m\xEF\x9F?\xA2?N\xFD\xDC\xF2\xE7;\xD0w\x8C@\xCC\xDC\xCD\xF2\xAB\xE6WͿ6\xBEep\xE9t\xB3+ \x91_5&quot;ݢ\xDD&lt;\\xBFj\x80\x88\x87\xE7W+7\x90\xE2\xDEZ~x\x9Cc```d\x82\xCB&quot;\xEA\xF9`:\xCAd\x8C7}x\x9Cc`d``\xE0bx\xC0\xA8\xC7\xC0`\xC3z\x87 \x84;\x88'\xA0\xB4&amp;j\xA7100\xC6\xA1\xCE\xA2L\xC3\xD8Hf\xA0\x88anj\xA2 \xAF\xD96  b@ZH3\x82M`CT\x9E
+\xF301H0\xC8\xE1tD\xA5\x83\x83        \x90%T\xADg\x8A1KG2\xB0\x98m\x84\x8B1\x82\xD51A\xD8Q\xC8\xB7\xE8\xE8
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupoperatorsmoaxisheight1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1-expected.txt (0 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1-expected.txt        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+↨
+
+
+FAIL AxisHeight assert_approx_equals: mo: axis height expected 50 +/- 1 but got 70
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+LF
</ins><span class="cx">\ No newline at end of property
</span><a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkupoperatorsmoaxisheight1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html (0 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;mo axis height&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S3.html#SS2.SSS4&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Element mo correctly uses the axis height parameter from the MATH table.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+  math, mspace {
+    font-size: 10px;
+  }
+  @font-face {
+    font-family: axisheight5000-verticalarrow14000;
+    src: url(&quot;../../../fonts/math/axisheight5000-verticalarrow14000.woff&quot;);
+  }
+&lt;/style&gt;
+&lt;script&gt;
+  var emToPx = 10 / 1000; // font-size: 10px, font.em = 1000
+  var epsilon = 1;
+
+  function getBox(aId) {
+    return document.getElementById(aId).getBoundingClientRect();
+  }
+
+  setup({ explicit_done: true });
+  window.addEventListener(&quot;load&quot;, function() {
+    document.fonts.ready.then(function() {
+      window.setTimeout(runTests, 250);
+    });
+  });
+
+  function runTests() {
+    test(function() {
+      var v1 = 5000 * emToPx;
+      var moMiddle = (getBox(&quot;mo&quot;).bottom + getBox(&quot;mo&quot;).top) / 2;
+      assert_approx_equals(getBox(&quot;baseline&quot;).bottom - moMiddle,
+                           v1, epsilon, &quot;mo: axis height&quot;);
+    }, &quot;AxisHeight&quot;);
+
+    done();
+  }
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;
+    &lt;math style=&quot;font-family: axisheight5000-verticalarrow14000;&quot;&gt;
+      &lt;mrow&gt;
+        &lt;mspace id=&quot;baseline&quot; mathbackground=&quot;blue&quot; width=&quot;100px&quot; height=&quot;1px&quot;/&gt;
+        &lt;mo id=&quot;mo&quot; mathcolor=&quot;green&quot;&gt;&amp;#x21A8;&lt;/mo&gt;
+        &lt;mspace mathbackground=&quot;black&quot; width=&quot;10px&quot; height=&quot;100px&quot;/&gt;
+      &lt;/mrow&gt;
+    &lt;/math&gt;
+  &lt;/p&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">Property changes on: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+LF
</ins><span class="cx">\ No newline at end of property
</span><a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<ins>+text/html
</ins><span class="cx">\ No newline at end of property
</span><a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkuptablestableaxisheightexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height-expected.txt (0 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height-expected.txt        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS AxisHeight 
+
</ins><span class="cx">Property changes on: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height-expected.txt
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+LF
</ins><span class="cx">\ No newline at end of property
</span><a id="trunkLayoutTestsimportedmathmlinhtml5mathmlpresentationmarkuptablestableaxisheighthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html (0 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html                                (rev 0)
+++ trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;table axis height&lt;/title&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.mathml-association.org/MathMLinHTML5/S3.html#SS5&quot;&gt;
+&lt;meta name=&quot;assert&quot; content=&quot;Element mtable correctly uses the axis height parameter from the MATH table.&quot;&gt;
+&lt;script src=&quot;../../../../../resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../../../resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+  math, mspace {
+    font-size: 10px;
+  }
+  @font-face {
+    font-family: axisheight5000-verticalarrow14000;
+    src: url(&quot;../../../fonts/math/axisheight5000-verticalarrow14000.woff&quot;);
+  }
+&lt;/style&gt;
+&lt;script&gt;
+  var emToPx = 10 / 1000; // font-size: 10px, font.em = 1000
+  var epsilon = 1;
+
+  function getBox(aId) {
+    return document.getElementById(aId).getBoundingClientRect();
+  }
+
+  setup({ explicit_done: true });
+  window.addEventListener(&quot;load&quot;, function() {
+    document.fonts.ready.then(function() {
+      window.setTimeout(runTests, 250);
+    });
+  });
+
+  function runTests() {
+    test(function() {
+      var v1 = 5000 * emToPx;
+      var tableMiddle = (getBox(&quot;table&quot;).bottom + getBox(&quot;table&quot;).top) / 2;
+      assert_approx_equals(getBox(&quot;baseline&quot;).bottom - tableMiddle,
+                           v1, epsilon, &quot;mtable: axis height&quot;);
+    }, &quot;AxisHeight&quot;);
+
+    done();
+  }
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+  &lt;p&gt;
+    &lt;math style=&quot;font-family: axisheight5000-verticalarrow14000&quot;&gt;
+      &lt;mspace id=&quot;baseline&quot; mathbackground=&quot;green&quot; width=&quot;50px&quot; height=&quot;1px&quot;/&gt;
+      &lt;mtable id=&quot;table&quot; mathbackground=&quot;blue&quot;&gt;&lt;mtr&gt;&lt;mtd&gt;&lt;mspace width=&quot;100px&quot; height=&quot;1px&quot;/&gt;&lt;/mtd&gt;&lt;/mtr&gt;&lt;/mtable&gt;
+    &lt;/math&gt;
+  &lt;/p&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">Property changes on: trunk/LayoutTests/imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<ins>+LF
</ins><span class="cx">\ No newline at end of property
</span><a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<ins>+text/html
</ins><span class="cx">\ No newline at end of property
</span><a id="trunkLayoutTestsplatformgtkmathmlopentypeverticalexpectedpng"></a>
<div class="binary"><h4>Modified: trunk/LayoutTests/platform/gtk/mathml/opentype/vertical-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkmathmlopentypeverticalexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/mathml/opentype/vertical-expected.txt (202972 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/mathml/opentype/vertical-expected.txt        2016-07-08 08:57:50 UTC (rev 202972)
+++ trunk/LayoutTests/platform/gtk/mathml/opentype/vertical-expected.txt        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -1,8 +1,8 @@
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><del>-layer at (0,0) size 800x371
-  RenderBlock {HTML} at (0,0) size 800x371
-    RenderBody {BODY} at (8,16) size 784x339
</del><ins>+layer at (0,0) size 800x358
+  RenderBlock {HTML} at (0,0) size 800x358
+    RenderBody {BODY} at (8,16) size 784x326
</ins><span class="cx">       RenderBlock {P} at (0,0) size 784x18
</span><span class="cx">         RenderMathMLMath {math} at (0,2) size 100x16 [padding: 0 1 0 1]
</span><span class="cx">           RenderMathMLOperator {mo} at (1,0) size 4x16
</span><span class="lines">@@ -67,72 +67,72 @@
</span><span class="cx">                 text run at (0,-45) width 6: &quot;\x{27E9}&quot;
</span><span class="cx">           RenderMathMLSpace {mspace} at (98,4) size 0x8
</span><span class="cx">         RenderText {#text} at (0,0) size 0x0
</span><del>-      RenderBlock {P} at (0,34) size 784x30
-        RenderMathMLMath {math} at (0,0) size 142x30 [padding: 0 1 0 1]
-          RenderMathMLOperator {mo} at (1,0) size 8x30
</del><ins>+      RenderBlock {P} at (0,34) size 784x24
+        RenderMathMLMath {math} at (0,0) size 128x24 [padding: 0 1 0 1]
+          RenderMathMLOperator {mo} at (1,0) size 7x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (9,0) size 8x30
</del><ins>+          RenderMathMLOperator {mo} at (8,0) size 7x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (17,0) size 11x30
</del><ins>+          RenderMathMLOperator {mo} at (15,0) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (28,0) size 11x30
</del><ins>+          RenderMathMLOperator {mo} at (25,0) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (39,0) size 10x30
</del><ins>+          RenderMathMLOperator {mo} at (35,0) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (49,0) size 10x30
</del><ins>+          RenderMathMLOperator {mo} at (43,0) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><del>-          RenderMathMLOperator {mo} at (59,1) size 8x28
</del><ins>+          RenderMathMLOperator {mo} at (51,0) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span><del>-          RenderMathMLOperator {mo} at (66,0) size 9x30
</del><ins>+          RenderMathMLOperator {mo} at (58,0) size 9x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (74,0) size 9x30
</del><ins>+          RenderMathMLOperator {mo} at (66,0) size 9x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (82,0) size 9x30
</del><ins>+          RenderMathMLOperator {mo} at (74,0) size 9x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (90,0) size 9x30
</del><ins>+          RenderMathMLOperator {mo} at (82,0) size 9x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (98,0) size 12x30
</del><ins>+          RenderMathMLOperator {mo} at (90,0) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E6}&quot;
</span><del>-          RenderMathMLOperator {mo} at (109,0) size 12x30
</del><ins>+          RenderMathMLOperator {mo} at (99,0) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E7}&quot;
</span><del>-          RenderMathMLOperator {mo} at (120,0) size 11x30
</del><ins>+          RenderMathMLOperator {mo} at (108,0) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;\x{27E8}&quot;
</span><del>-          RenderMathMLOperator {mo} at (130,0) size 11x30
</del><ins>+          RenderMathMLOperator {mo} at (117,0) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;\x{27E9}&quot;
</span><del>-          RenderMathMLSpace {mspace} at (140,3) size 0x16
-        RenderText {#text} at (141,5) size 5x17
-          text run at (141,5) width 5: &quot; &quot;
-        RenderMathMLMath {math} at (145,3) size 212x23 [padding: 0 1 0 1]
</del><ins>+          RenderMathMLSpace {mspace} at (126,0) size 0x16
+        RenderText {#text} at (127,2) size 5x17
+          text run at (127,2) width 5: &quot; &quot;
+        RenderMathMLMath {math} at (131,0) size 212x23 [padding: 0 1 0 1]
</ins><span class="cx">           RenderMathMLOperator {mo} at (1,1) size 17x22
</span><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x15
</span><span class="cx">               RenderText {#text} at (0,-46) size 8x106
</span><span class="lines">@@ -183,93 +183,93 @@
</span><span class="cx">                 text run at (0,-45) width 10: &quot;\x{21D5}&quot;
</span><span class="cx">           RenderMathMLSpace {mspace} at (209,0) size 0x16
</span><span class="cx">         RenderText {#text} at (0,0) size 0x0
</span><del>-      RenderBlock {P} at (0,80) size 784x48
-        RenderMathMLMath {math} at (0,0) size 190x48 [padding: 0 1 0 1]
-          RenderMathMLOperator {mo} at (1,0) size 11x48
</del><ins>+      RenderBlock {P} at (0,74) size 784x42
+        RenderMathMLMath {math} at (0,0) size 160x42 [padding: 0 1 0 1]
+          RenderMathMLOperator {mo} at (1,1) size 8x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (12,0) size 11x48
</del><ins>+          RenderMathMLOperator {mo} at (9,1) size 8x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (23,0) size 14x48
</del><ins>+          RenderMathMLOperator {mo} at (17,1) size 12x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (37,0) size 14x48
</del><ins>+          RenderMathMLOperator {mo} at (29,1) size 12x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (51,0) size 14x48
</del><ins>+          RenderMathMLOperator {mo} at (41,1) size 12x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (65,0) size 14x48
</del><ins>+          RenderMathMLOperator {mo} at (53,1) size 12x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><del>-          RenderMathMLOperator {mo} at (79,3) size 8x42
</del><ins>+          RenderMathMLOperator {mo} at (65,0) size 8x42
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span><del>-          RenderMathMLOperator {mo} at (86,0) size 11x48
</del><ins>+          RenderMathMLOperator {mo} at (72,1) size 10x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (96,0) size 11x48
</del><ins>+          RenderMathMLOperator {mo} at (81,1) size 10x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (106,0) size 11x48
</del><ins>+          RenderMathMLOperator {mo} at (90,1) size 10x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (116,0) size 11x48
</del><ins>+          RenderMathMLOperator {mo} at (99,1) size 10x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (126,0) size 17x48
</del><ins>+          RenderMathMLOperator {mo} at (108,1) size 14x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E6}&quot;
</span><del>-          RenderMathMLOperator {mo} at (142,0) size 17x48
</del><ins>+          RenderMathMLOperator {mo} at (121,1) size 14x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E7}&quot;
</span><del>-          RenderMathMLOperator {mo} at (158,0) size 16x48
</del><ins>+          RenderMathMLOperator {mo} at (134,1) size 13x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;\x{27E8}&quot;
</span><del>-          RenderMathMLOperator {mo} at (173,0) size 16x48
</del><ins>+          RenderMathMLOperator {mo} at (146,1) size 13x40
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;\x{27E9}&quot;
</span><del>-          RenderMathMLSpace {mspace} at (188,4) size 0x24
</del><ins>+          RenderMathMLSpace {mspace} at (158,1) size 0x24
</ins><span class="cx">         RenderText {#text} at (0,0) size 0x0
</span><del>-      RenderBlock {P} at (0,144) size 784x58
</del><ins>+      RenderBlock {P} at (0,132) size 784x58
</ins><span class="cx">         RenderMathMLMath {math} at (0,0) size 194x58 [padding: 0 1 0 1]
</span><del>-          RenderMathMLOperator {mo} at (1,1) size 11x57
</del><ins>+          RenderMathMLOperator {mo} at (1,1) size 11x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (12,1) size 11x57
</del><ins>+          RenderMathMLOperator {mo} at (12,1) size 11x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (23,1) size 14x57
</del><ins>+          RenderMathMLOperator {mo} at (23,1) size 14x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (37,1) size 14x57
</del><ins>+          RenderMathMLOperator {mo} at (37,1) size 14x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (51,1) size 14x57
</del><ins>+          RenderMathMLOperator {mo} at (51,1) size 14x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (65,1) size 14x57
</del><ins>+          RenderMathMLOperator {mo} at (65,1) size 14x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><span class="lines">@@ -277,27 +277,27 @@
</span><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span><del>-          RenderMathMLOperator {mo} at (86,1) size 12x57
</del><ins>+          RenderMathMLOperator {mo} at (86,1) size 12x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (97,1) size 12x57
</del><ins>+          RenderMathMLOperator {mo} at (97,1) size 12x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (108,1) size 12x57
</del><ins>+          RenderMathMLOperator {mo} at (108,1) size 12x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (119,1) size 12x57
</del><ins>+          RenderMathMLOperator {mo} at (119,1) size 12x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (130,1) size 17x57
</del><ins>+          RenderMathMLOperator {mo} at (130,1) size 17x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E6}&quot;
</span><del>-          RenderMathMLOperator {mo} at (146,1) size 17x57
</del><ins>+          RenderMathMLOperator {mo} at (146,1) size 17x56
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E7}&quot;
</span><span class="lines">@@ -363,57 +363,57 @@
</span><span class="cx">                 text run at (0,-45) width 10: &quot;\x{21D5}&quot;
</span><span class="cx">           RenderMathMLSpace {mspace} at (210,0) size 0x32
</span><span class="cx">         RenderText {#text} at (0,0) size 0x0
</span><del>-      RenderBlock {P} at (0,218) size 784x121
-        RenderMathMLMath {math} at (0,0) size 194x121 [padding: 0 1 0 1]
-          RenderMathMLOperator {mo} at (1,0) size 11x121
</del><ins>+      RenderBlock {P} at (0,206) size 784x120
+        RenderMathMLMath {math} at (0,0) size 194x120 [padding: 0 1 0 1]
+          RenderMathMLOperator {mo} at (1,0) size 11x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (12,0) size 11x121
</del><ins>+          RenderMathMLOperator {mo} at (12,0) size 11x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (23,0) size 14x121
</del><ins>+          RenderMathMLOperator {mo} at (23,0) size 14x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (37,0) size 14x121
</del><ins>+          RenderMathMLOperator {mo} at (37,0) size 14x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (51,0) size 14x121
</del><ins>+          RenderMathMLOperator {mo} at (51,0) size 14x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (65,0) size 14x121
</del><ins>+          RenderMathMLOperator {mo} at (65,0) size 14x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><del>-          RenderMathMLOperator {mo} at (79,0) size 8x121
</del><ins>+          RenderMathMLOperator {mo} at (79,0) size 8x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span><del>-          RenderMathMLOperator {mo} at (86,0) size 12x121
</del><ins>+          RenderMathMLOperator {mo} at (86,0) size 12x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (97,0) size 12x121
</del><ins>+          RenderMathMLOperator {mo} at (97,0) size 12x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (108,0) size 12x121
</del><ins>+          RenderMathMLOperator {mo} at (108,0) size 12x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (119,0) size 12x121
</del><ins>+          RenderMathMLOperator {mo} at (119,0) size 12x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (130,0) size 17x121
</del><ins>+          RenderMathMLOperator {mo} at (130,0) size 17x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E6}&quot;
</span><del>-          RenderMathMLOperator {mo} at (146,0) size 17x121
</del><ins>+          RenderMathMLOperator {mo} at (146,0) size 17x120
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{27E7}&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkmathmlpresentationmostretchexpectedpng"></a>
<div class="binary"><h4>Modified: trunk/LayoutTests/platform/gtk/mathml/presentation/mo-stretch-expected.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<a id="trunkLayoutTestsplatformgtkmathmlpresentationmostretchexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/gtk/mathml/presentation/mo-stretch-expected.txt (202972 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/gtk/mathml/presentation/mo-stretch-expected.txt        2016-07-08 08:57:50 UTC (rev 202972)
+++ trunk/LayoutTests/platform/gtk/mathml/presentation/mo-stretch-expected.txt        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -1,108 +1,108 @@
</span><span class="cx"> layer at (0,0) size 800x600
</span><span class="cx">   RenderView at (0,0) size 800x600
</span><del>-layer at (0,0) size 800x270
-  RenderBlock {HTML} at (0,0) size 800x270
-    RenderBody {BODY} at (8,8) size 784x254
-      RenderMathMLMath {math} at (0,0) size 140x36 [padding: 0 1 0 1]
-        RenderMathMLRow {mrow} at (1,0) size 138x36
-          RenderMathMLOperator {mo} at (0,3) size 10x30
</del><ins>+layer at (0,0) size 800x268
+  RenderBlock {HTML} at (0,0) size 800x268
+    RenderBody {BODY} at (8,8) size 784x252
+      RenderMathMLMath {math} at (0,0) size 132x36 [padding: 0 1 0 1]
+        RenderMathMLRow {mrow} at (1,0) size 130x36
+          RenderMathMLOperator {mo} at (0,6) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (10,3) size 10x30
</del><ins>+          RenderMathMLOperator {mo} at (8,6) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><del>-          RenderMathMLOperator {mo} at (20,3) size 11x30
</del><ins>+          RenderMathMLOperator {mo} at (16,6) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (31,3) size 11x30
</del><ins>+          RenderMathMLOperator {mo} at (26,6) size 10x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (42,3) size 8x30
</del><ins>+          RenderMathMLOperator {mo} at (36,6) size 7x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (50,3) size 8x30
</del><ins>+          RenderMathMLOperator {mo} at (43,6) size 7x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (58,3) size 8x30
</del><ins>+          RenderMathMLOperator {mo} at (50,6) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (66,3) size 8x30
</del><ins>+          RenderMathMLOperator {mo} at (58,6) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (74,3) size 8x30
</del><ins>+          RenderMathMLOperator {mo} at (66,6) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (82,3) size 8x30
</del><ins>+          RenderMathMLOperator {mo} at (74,6) size 8x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (90,0) size 17x36
</del><ins>+          RenderMathMLOperator {mo} at (82,0) size 17x36
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 11x18
</span><span class="cx">               RenderText {#text} at (0,-44) size 11x106
</span><span class="cx">                 text run at (0,-44) width 11: &quot;\x{222B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (106,4) size 9x28
</del><ins>+          RenderMathMLOperator {mo} at (98,6) size 9x24
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span><del>-          RenderMathMLOperator {mo} at (114,10) size 7x16
</del><ins>+          RenderMathMLOperator {mo} at (106,10) size 7x16
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;\x{2016}&quot;
</span><del>-          RenderMathMLOperator {mo} at (120,10) size 18x16
</del><ins>+          RenderMathMLOperator {mo} at (112,10) size 18x16
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;\x{2225}&quot;
</span><del>-      RenderText {#text} at (139,8) size 5x17
-        text run at (139,8) width 5: &quot; &quot;
</del><ins>+      RenderText {#text} at (131,8) size 5x17
+        text run at (131,8) width 5: &quot; &quot;
</ins><span class="cx">       RenderBR {BR} at (0,0) size 0x0
</span><del>-      RenderMathMLMath {math} at (0,36) size 172x143 [padding: 0 1 0 1]
-        RenderMathMLRow {mrow} at (1,0) size 170x143
-          RenderMathMLOperator {mo} at (0,0) size 14x143
</del><ins>+      RenderMathMLMath {math} at (0,36) size 172x142 [padding: 0 1 0 1]
+        RenderMathMLRow {mrow} at (1,0) size 170x142
+          RenderMathMLOperator {mo} at (0,0) size 14x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (14,0) size 14x143
</del><ins>+          RenderMathMLOperator {mo} at (14,0) size 14x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><del>-          RenderMathMLOperator {mo} at (28,0) size 14x143
</del><ins>+          RenderMathMLOperator {mo} at (28,0) size 14x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (42,0) size 14x143
</del><ins>+          RenderMathMLOperator {mo} at (42,0) size 14x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (56,0) size 11x143
</del><ins>+          RenderMathMLOperator {mo} at (56,0) size 11x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (67,0) size 11x143
</del><ins>+          RenderMathMLOperator {mo} at (67,0) size 11x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (78,0) size 11x143
</del><ins>+          RenderMathMLOperator {mo} at (78,0) size 11x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (89,0) size 11x143
</del><ins>+          RenderMathMLOperator {mo} at (89,0) size 11x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (100,0) size 11x143
</del><ins>+          RenderMathMLOperator {mo} at (100,0) size 11x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (111,0) size 11x143
</del><ins>+          RenderMathMLOperator {mo} at (111,0) size 11x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx">             RenderBlock (anonymous) at (0,0) size 11x18
</span><span class="cx">               RenderText {#text} at (0,-44) size 11x106
</span><span class="cx">                 text run at (0,-44) width 11: &quot;\x{222B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (138,0) size 9x143
</del><ins>+          RenderMathMLOperator {mo} at (138,0) size 9x142
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span><span class="lines">@@ -125,45 +125,45 @@
</span><span class="cx">           RenderMathMLSpace {mspace} at (169,0) size 0x76
</span><span class="cx">       RenderText {#text} at (171,97) size 5x17
</span><span class="cx">         text run at (171,97) width 5: &quot; &quot;
</span><del>-      RenderMathMLMath {math} at (175,61) size 172x93 [padding: 0 1 0 1]
-        RenderMathMLRow {mrow} at (1,0) size 170x93
-          RenderMathMLOperator {mo} at (0,0) size 14x93
</del><ins>+      RenderMathMLMath {math} at (175,61) size 172x92 [padding: 0 1 0 1]
+        RenderMathMLRow {mrow} at (1,0) size 170x92
+          RenderMathMLOperator {mo} at (0,0) size 14x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (14,0) size 14x93
</del><ins>+          RenderMathMLOperator {mo} at (14,0) size 14x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><del>-          RenderMathMLOperator {mo} at (28,0) size 14x93
</del><ins>+          RenderMathMLOperator {mo} at (28,0) size 14x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (42,0) size 14x93
</del><ins>+          RenderMathMLOperator {mo} at (42,0) size 14x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (56,0) size 11x93
</del><ins>+          RenderMathMLOperator {mo} at (56,0) size 11x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (67,0) size 11x93
</del><ins>+          RenderMathMLOperator {mo} at (67,0) size 11x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (78,0) size 11x93
</del><ins>+          RenderMathMLOperator {mo} at (78,0) size 11x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (89,0) size 11x93
</del><ins>+          RenderMathMLOperator {mo} at (89,0) size 11x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (100,0) size 11x93
</del><ins>+          RenderMathMLOperator {mo} at (100,0) size 11x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (111,0) size 11x93
</del><ins>+          RenderMathMLOperator {mo} at (111,0) size 11x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><span class="lines">@@ -171,7 +171,7 @@
</span><span class="cx">             RenderBlock (anonymous) at (0,0) size 11x18
</span><span class="cx">               RenderText {#text} at (0,-44) size 11x106
</span><span class="cx">                 text run at (0,-44) width 11: &quot;\x{222B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (138,0) size 9x93
</del><ins>+          RenderMathMLOperator {mo} at (138,0) size 9x92
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span><span class="lines">@@ -248,45 +248,45 @@
</span><span class="cx">       RenderText {#text} at (493,97) size 5x17
</span><span class="cx">         text run at (493,97) width 5: &quot; &quot;
</span><span class="cx">       RenderBR {BR} at (0,0) size 0x0
</span><del>-      RenderMathMLMath {math} at (0,179) size 187x76 [padding: 0 1 0 1]
-        RenderMathMLRoot {msqrt} at (1,0) size 185x76
-          RenderMathMLOperator {mo} at (17,2) size 14x74
</del><ins>+      RenderMathMLMath {math} at (0,178) size 187x75 [padding: 0 1 0 1]
+        RenderMathMLRoot {msqrt} at (1,0) size 185x75
+          RenderMathMLOperator {mo} at (17,2) size 14x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;(&quot;
</span><del>-          RenderMathMLOperator {mo} at (31,2) size 14x74
</del><ins>+          RenderMathMLOperator {mo} at (31,2) size 14x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 6x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 6x106
</span><span class="cx">                 text run at (0,-45) width 6: &quot;)&quot;
</span><del>-          RenderMathMLOperator {mo} at (45,2) size 14x74
</del><ins>+          RenderMathMLOperator {mo} at (45,2) size 14x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;{&quot;
</span><del>-          RenderMathMLOperator {mo} at (59,2) size 14x74
</del><ins>+          RenderMathMLOperator {mo} at (59,2) size 14x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 8x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 8x106
</span><span class="cx">                 text run at (0,-45) width 8: &quot;}&quot;
</span><del>-          RenderMathMLOperator {mo} at (73,2) size 11x74
</del><ins>+          RenderMathMLOperator {mo} at (73,2) size 11x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;[&quot;
</span><del>-          RenderMathMLOperator {mo} at (84,2) size 11x74
</del><ins>+          RenderMathMLOperator {mo} at (84,2) size 11x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;]&quot;
</span><del>-          RenderMathMLOperator {mo} at (95,2) size 11x74
</del><ins>+          RenderMathMLOperator {mo} at (95,2) size 11x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2308}&quot;
</span><del>-          RenderMathMLOperator {mo} at (106,2) size 11x74
</del><ins>+          RenderMathMLOperator {mo} at (106,2) size 11x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{2309}&quot;
</span><del>-          RenderMathMLOperator {mo} at (117,2) size 11x74
</del><ins>+          RenderMathMLOperator {mo} at (117,2) size 11x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230A}&quot;
</span><del>-          RenderMathMLOperator {mo} at (128,2) size 11x74
</del><ins>+          RenderMathMLOperator {mo} at (128,2) size 11x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 7x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 7x106
</span><span class="cx">                 text run at (0,-45) width 7: &quot;\x{230B}&quot;
</span><span class="lines">@@ -294,7 +294,7 @@
</span><span class="cx">             RenderBlock (anonymous) at (0,0) size 11x18
</span><span class="cx">               RenderText {#text} at (0,-44) size 11x106
</span><span class="cx">                 text run at (0,-44) width 11: &quot;\x{222B}&quot;
</span><del>-          RenderMathMLOperator {mo} at (155,2) size 9x74
</del><ins>+          RenderMathMLOperator {mo} at (155,2) size 9x73
</ins><span class="cx">             RenderBlock (anonymous) at (0,0) size 4x16
</span><span class="cx">               RenderText {#text} at (0,-45) size 4x106
</span><span class="cx">                 text run at (0,-45) width 4: &quot;|&quot;
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (202972 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-07-08 08:57:50 UTC (rev 202972)
+++ trunk/Source/WebCore/ChangeLog        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2016-07-08  Frederic Wang  &lt;fwang@igalia.com&gt;
+
+        Use OpenType MATH constant AxisHeight.
+        https://bugs.webkit.org/show_bug.cgi?id=133567
+
+        Reviewed by Brent Fulgham.
+
+        We make RenderMathMLOperator and RenderMathMLTable use the OpenType MATH constant AxisHeight.
+        These are the only remaining cases to handle since RenderMathMLFraction already uses that constant.
+
+        Tests: imported/mathml-in-html5/mathml/presentation-markup/operators/mo-axis-height-1.html
+              imported/mathml-in-html5/mathml/presentation-markup/tables/table-axis-height.html
+
+        * rendering/mathml/RenderMathMLBlock.cpp: Make RenderMathMLTable use the math axis
+        for its vertical alignment and update a bit the comments.
+        (WebCore::axisHeight): Move the code in a static function that can be called by
+        RenderMathMLBlock and RenderMathMLTable.
+        (WebCore::RenderMathMLBlock::mathAxisHeight): Use axisHeight.
+        (WebCore::RenderMathMLTable::firstLineBaseline): Ditto.
+        * rendering/mathml/RenderMathMLOperator.cpp:
+        (WebCore::RenderMathMLOperator::stretchTo):
+
</ins><span class="cx"> 2016-07-08  Manuel Rego Casasnovas  &lt;rego@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [css-grid] Disallow repeat() in grid-template shorthand
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingmathmlRenderMathMLBlockcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp (202972 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp        2016-07-08 08:57:50 UTC (rev 202972)
+++ trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -67,15 +67,23 @@
</span><span class="cx">     return is&lt;Element&gt;(child.node());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-LayoutUnit RenderMathMLBlock::mathAxisHeight() const
</del><ins>+static LayoutUnit axisHeight(const RenderStyle&amp; style)
</ins><span class="cx"> {
</span><del>-    const auto&amp; primaryFont = style().fontCascade().primaryFont();
</del><ins>+    // If we have a MATH table we just return the AxisHeight constant.
+    const auto&amp; primaryFont = style.fontCascade().primaryFont();
</ins><span class="cx">     if (auto* mathData = primaryFont.mathData())
</span><span class="cx">         return mathData-&gt;getMathConstant(primaryFont, OpenTypeMathData::AxisHeight);
</span><span class="cx"> 
</span><del>-    return style().fontMetrics().xHeight() / 2;
</del><ins>+    // Otherwise, the idea is to try and use the middle of operators as the math axis which we thus approximate by &quot;half of the x-height&quot;.
+    // Note that Gecko has a slower but more accurate version that measures half of the height of U+2212 MINUS SIGN.
+    return style.fontMetrics().xHeight() / 2;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+LayoutUnit RenderMathMLBlock::mathAxisHeight() const
+{
+    return axisHeight(style());
+}
+
</ins><span class="cx"> LayoutUnit RenderMathMLBlock::mirrorIfNeeded(LayoutUnit horizontalOffset, LayoutUnit boxWidth) const
</span><span class="cx"> {
</span><span class="cx">     if (style().direction() == RTL)
</span><span class="lines">@@ -304,10 +312,9 @@
</span><span class="cx"> 
</span><span class="cx"> Optional&lt;int&gt; RenderMathMLTable::firstLineBaseline() const
</span><span class="cx"> {
</span><del>-    // In legal MathML, we'll have a MathML parent. That RenderFlexibleBox parent will use our firstLineBaseline() for baseline alignment, per
-    // http://dev.w3.org/csswg/css3-flexbox/#flex-baselines. We want to vertically center an &lt;mtable&gt;, such as a matrix. Essentially the whole &lt;mtable&gt; element fits on a
-    // single line, whose baseline gives this centering. This is different than RenderTable::firstLineBoxBaseline, which returns the baseline of the first row of a &lt;table&gt;.
-    return (logicalHeight() + style().fontMetrics().xHeight()) / 2;
</del><ins>+    // By default the vertical center of &lt;mtable&gt; is aligned on the math axis.
+    // This is different than RenderTable::firstLineBoxBaseline, which returns the baseline of the first row of a &lt;table&gt;.
+    return Optional&lt;int&gt;(logicalHeight() / 2 + axisHeight(style()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void RenderMathMLBlock::layoutItems(bool relayoutChildren)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingmathmlRenderMathMLOperatorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp (202972 => 202973)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp        2016-07-08 08:57:50 UTC (rev 202972)
+++ trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp        2016-07-08 09:37:57 UTC (rev 202973)
</span><span class="lines">@@ -185,8 +185,7 @@
</span><span class="cx">     setOperatorProperties();
</span><span class="cx">     if (hasOperatorFlag(MathMLOperatorDictionary::Symmetric)) {
</span><span class="cx">         // We make the operator stretch symmetrically above and below the axis.
</span><del>-        // FIXME: We should read the axis from the MATH table (https://bugs.webkit.org/show_bug.cgi?id=122297). For now, we use the same value as in RenderMathMLFraction::firstLineBaseline().
-        LayoutUnit axis = style().fontMetrics().xHeight() / 2;
</del><ins>+        LayoutUnit axis = mathAxisHeight();
</ins><span class="cx">         LayoutUnit halfStretchSize = std::max(m_stretchHeightAboveBaseline - axis, m_stretchDepthBelowBaseline + axis);
</span><span class="cx">         m_stretchHeightAboveBaseline = halfStretchSize + axis;
</span><span class="cx">         m_stretchDepthBelowBaseline = halfStretchSize - axis;
</span></span></pre>
</div>
</div>

</body>
</html>