Title: [191011] trunk
Revision
191011
Author
[email protected]
Date
2015-10-13 15:53:46 -0700 (Tue, 13 Oct 2015)

Log Message

Anonymous table objects: inline parent box requires inline-table child.
https://bugs.webkit.org/show_bug.cgi?id=150090

Reviewed by David Hyatt.

According to the CSS2.1 specification, if a child needs anonymous table wrapper
and the child's parent is an inline box, the generated table needs to be inline-table.
(inline-block and block parents generate non-inline table)

Import W3C CSS2.1 anonymous table tests.

Source/WebCore:

* rendering/RenderElement.cpp:
(WebCore::RenderElement::childRequiresTable):
(WebCore::RenderElement::addChild):
* rendering/RenderElement.h:
* rendering/RenderInline.cpp:
(WebCore::RenderInline::newChildIsInline):
(WebCore::RenderInline::addChildIgnoringContinuation):
(WebCore::RenderInline::addChildToContinuation):
* rendering/RenderInline.h:
* rendering/RenderTable.cpp:
(WebCore::RenderTable::createAnonymousWithParentRenderer):

LayoutTests:

* css2.1/tables/table-anonymous-objects-177.xht: Added.
* css2.1/tables/table-anonymous-objects-178.xht: Added.
* css2.1/tables/table-anonymous-objects-179.xht: Added.
* css2.1/tables/table-anonymous-objects-180.xht: Added.
* css2.1/tables/table-anonymous-objects-181.xht: Added.
* css2.1/tables/table-anonymous-objects-189.xht: Added.
* css2.1/tables/table-anonymous-objects-190.xht: Added.
* css2.1/tables/table-anonymous-objects-191.xht: Added.
* css2.1/tables/table-anonymous-objects-192.xht: Added.
* css2.1/tables/table-anonymous-objects-193.xht: Added.
* css2.1/tables/table-anonymous-objects-194.xht: Added.
* css2.1/tables/table-anonymous-objects-195.xht: Added.
* css2.1/tables/table-anonymous-objects-196.xht: Added.
* css2.1/tables/table-anonymous-objects-205.xht: Added.
* css2.1/tables/table-anonymous-objects-206.xht: Added.
* css2.1/tables/table-anonymous-objects-207.xht: Added.
* css2.1/tables/table-anonymous-objects-208.xht: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-177-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-178-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-179-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-180-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-181-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-189-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-190-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-191-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-192-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-193-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-194-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-195-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-196-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-205-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-206-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-207-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-208-expected.txt: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (191010 => 191011)


--- trunk/LayoutTests/ChangeLog	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/LayoutTests/ChangeLog	2015-10-13 22:53:46 UTC (rev 191011)
@@ -1,3 +1,51 @@
+2015-10-13  Zalan Bujtas  <[email protected]>
+
+        Anonymous table objects: inline parent box requires inline-table child.
+        https://bugs.webkit.org/show_bug.cgi?id=150090
+
+        Reviewed by David Hyatt.
+
+        According to the CSS2.1 specification, if a child needs anonymous table wrapper
+        and the child's parent is an inline box, the generated table needs to be inline-table.
+        (inline-block and block parents generate non-inline table) 
+
+        Import W3C CSS2.1 anonymous table tests.
+
+        * css2.1/tables/table-anonymous-objects-177.xht: Added.
+        * css2.1/tables/table-anonymous-objects-178.xht: Added.
+        * css2.1/tables/table-anonymous-objects-179.xht: Added.
+        * css2.1/tables/table-anonymous-objects-180.xht: Added.
+        * css2.1/tables/table-anonymous-objects-181.xht: Added.
+        * css2.1/tables/table-anonymous-objects-189.xht: Added.
+        * css2.1/tables/table-anonymous-objects-190.xht: Added.
+        * css2.1/tables/table-anonymous-objects-191.xht: Added.
+        * css2.1/tables/table-anonymous-objects-192.xht: Added.
+        * css2.1/tables/table-anonymous-objects-193.xht: Added.
+        * css2.1/tables/table-anonymous-objects-194.xht: Added.
+        * css2.1/tables/table-anonymous-objects-195.xht: Added.
+        * css2.1/tables/table-anonymous-objects-196.xht: Added.
+        * css2.1/tables/table-anonymous-objects-205.xht: Added.
+        * css2.1/tables/table-anonymous-objects-206.xht: Added.
+        * css2.1/tables/table-anonymous-objects-207.xht: Added.
+        * css2.1/tables/table-anonymous-objects-208.xht: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-177-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-178-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-179-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-180-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-181-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-189-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-190-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-191-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-192-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-193-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-194-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-195-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-196-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-205-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-206-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-207-expected.txt: Added.
+        * platform/mac/css2.1/tables/table-anonymous-objects-208-expected.txt: Added.
+
 2015-10-13  Ryan Haddad  <[email protected]>
 
         A lot of the http/tests/cache/disk-cache/ tests are flaky on mac-wk2, marking them as such.

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-177.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-177.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-177.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,27 @@
+<!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>
+
+  <title>CSS Test: Auto-imported from Gecko test white-space-12.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+</head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <span>
+      a
+      <span style="display: table-cell">b</span><span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-177.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-178.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-178.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-178.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,27 @@
+<!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>
+
+  <title>CSS Test: Auto-imported from Gecko test white-space-12.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+</head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <span>
+      a
+      <span style="display: table-cell">b</span><span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-178.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-179.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-179.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-179.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,28 @@
+<!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>
+
+  <title>CSS Test: Auto-imported from Gecko test white-space-13.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+</head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <span>
+      a
+      <span style="display: table-cell">b</span>
+      <span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-179.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-180.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-180.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-180.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,28 @@
+<!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>
+
+  <title>CSS Test: Auto-imported from Gecko test white-space-13.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+</head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <span>
+      a
+      <span style="display: table-cell">b</span>
+      <span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-180.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-181.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-181.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-181.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,14 @@
+<!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>
+    <style type="text/css">
+      #t:after { content: " d" }
+    </style>
+  </head>
+<body>
+<div style="position: absolute; z-index: 1; top: 0px; color: red;"><span id="t"><span style="display: table-cell">b</span>
+</span>
+</div>
+<div style="position: absolute; z-index: 2; top: 0; color: green;">b d</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-181.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-189.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-189.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-189.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,29 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-18.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span><span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-189.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-190.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-190.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-190.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,29 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-18.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span><span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-190.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-191.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-191.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-191.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,30 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-19.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span>
+      <span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-191.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-192.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-192.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-192.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,30 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-19.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content=''/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span>
+      <span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-192.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-193.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-193.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-193.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,29 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-20.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content='dom'/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span><script type="text/_javascript_">document.body.offsetWidth</script><span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-193.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-194.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-194.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-194.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,29 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-20.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content='dom'/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span><script type="text/_javascript_">document.body.offsetWidth</script><span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-194.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-195.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-195.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-195.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,31 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-21.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content='dom'/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span>
+      <script type="text/_javascript_">document.body.offsetWidth</script>
+      <span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-195.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-196.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-196.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-196.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,31 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-21.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content='dom'/>
+
+    <style type="text/css">
+      #t:before { content: "a" }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <span id="t">
+      <span style="display: table-cell">b</span>
+      <script type="text/_javascript_">document.body.offsetWidth</script>
+      <span style="display: table-cell">c</span>
+      d
+    </span>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-196.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-205.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-205.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-205.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,27 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-26.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content='dom'/>
+
+    <style type="text/css">
+      #t:after { display: table-cell; content: "d"; }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <span id="t">
+      a<script type="text/_javascript_">document.body.offsetWidth;</script> <span style="display: table-cell; white-space: pre">bc </span></span>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-205.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-206.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-206.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-206.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,27 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-26.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content='dom'/>
+
+    <style type="text/css">
+      #t:after { display: table-cell; content: "d"; }
+    </style>
+  </head>
+<body>
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <span id="t">
+      a<script type="text/_javascript_">document.body.offsetWidth;</script> <span style="display: table-cell; white-space: pre">bc </span></span>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    a bc d
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-206.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-207.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-207.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-207.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,32 @@
+<!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>
+  <title>CSS Test: Auto-imported from Gecko test white-space-pre-1.html</title>
+  <link rel="author" title="Boris Zbarsky" href=""
+  <link rel="help" href=""
+  <meta name="flags" content='dom'/>
+
+    <style type="text/css">
+      #x:after { content: " cd"; display: table-cell; }
+    </style>
+    <script type="text/_javascript_"><![CDATA[
+      function doTest() {
+        var f = document.getElementById("f");
+        f.parentNode.removeChild(f);
+      }
+    ]]></script>
+  </head>
+<body _onload_="doTest()">
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <div style="font-family: monospace; width: 10em; white-space: pre-wrap"><span id="f" style="float: left; width: 80%; height: 0.5em"></span><span id="x">a <script type="text/_javascript_">document.body.offsetWidth;</script> <span style="display: table-cell">b</span></span></div>
+  </div>
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <div style="font-family: monospace; white-space: pre-wrap">a  b cd</div>
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-207.xht
___________________________________________________________________

Added: svn:executable

Added: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-208.xht (0 => 191011)


--- trunk/LayoutTests/css2.1/tables/table-anonymous-objects-208.xht	                        (rev 0)
+++ trunk/LayoutTests/css2.1/tables/table-anonymous-objects-208.xht	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,26 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <style type="text/css">
+      #x:after { content: " cd"; display: table-cell; }
+    </style>
+    <script type="text/_javascript_"><![CDATA[
+      function doTest() {
+        var f = document.getElementById("f");
+        f.parentNode.removeChild(f);
+      }
+    ]]></script>
+  </head>
+<body _onload_="doTest()">
+<p>There should be no red below, except for antialiasing issues.</p>
+<div style="position: relative; font-size: 2em;">
+<div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
+
+    <div style="font-family: monospace; width: 10em; white-space: pre-wrap"><span id="f" style="float: left; width: 80%; height: 0.5em"></span><span id="x">a <script type="text/_javascript_">document.body.offsetWidth;</script> <span style="display: table-cell">b</span></span></div>
+  </div>
+<div style="position: relative; z-index: 1; color: red; padding: 1px;">
+
+    <div style="font-family: monospace; white-space: pre-wrap">a  b cd</div>
+  </div>
+</div>
+</body>
+</html>
Property changes on: trunk/LayoutTests/css2.1/tables/table-anonymous-objects-208.xht
___________________________________________________________________

Added: svn:executable

Modified: trunk/LayoutTests/fast/block/float/float-not-removed-from-pre-block-expected.txt (191010 => 191011)


--- trunk/LayoutTests/fast/block/float/float-not-removed-from-pre-block-expected.txt	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/LayoutTests/fast/block/float/float-not-removed-from-pre-block-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -1,3 +1,3 @@
 Bug 101970: Heap-use-after-free in WebCore::RenderLayerModelObject::hasSelfPaintingLayer
 Test passes if it does not crash.
-  
+    

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-177-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-177-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-177-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderText {#text} at (1,1) size 23x37
+        text run at (1,1) width 23: "a "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,50) size 78x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 79x39 [color=#008000]
+    RenderText zI: 2 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-178-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-178-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-178-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderText zI: 1 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"
+layer at (8,50) size 79x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 80x39 [color=#008000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderText {#text} at (1,1) size 23x37
+        text run at (1,1) width 23: "a "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 2 {#text} at (0,0) size 0x0

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-179-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-179-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-179-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderText {#text} at (1,1) size 23x37
+        text run at (1,1) width 23: "a "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,50) size 78x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 79x39 [color=#008000]
+    RenderText zI: 2 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-180-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-180-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-180-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,32 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderText zI: 1 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"
+layer at (8,50) size 79x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 80x39 [color=#008000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderText {#text} at (1,1) size 23x37
+        text run at (1,1) width 23: "a "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 2 {#text} at (0,0) size 0x0

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-181-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-181-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-181-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,22 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x8
+  RenderBlock {html} at (0,0) size 800x8
+    RenderBody {body} at (8,8) size 784x0
+layer at (8,0) size 20x18
+  RenderBlock (positioned) zI: 1 {div} at (8,0) size 20x18 [color=#FF0000]
+    RenderInline {span} at (0,0) size 20x18
+      RenderTable at (0,0) size 8x18
+        RenderTableSection (anonymous) at (0,0) size 8x18
+          RenderTableRow (anonymous) at (0,0) size 8x18
+            RenderTableCell {span} at (0,0) size 8x18 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 8x18
+                text run at (0,0) width 8: "b"
+      RenderInline (generated) at (0,0) size 12x18
+        RenderText at (8,0) size 12x18
+          text run at (8,0) width 12: " d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,0) size 20x18
+  RenderBlock (positioned) zI: 2 {div} at (8,0) size 20x18 [color=#008000]
+    RenderText zI: 2 {#text} at (0,0) size 20x18
+      text run at (0,0) width 20: "b d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-189-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-189-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-189-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,50) size 78x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 79x39 [color=#008000]
+    RenderText zI: 2 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-190-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-190-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-190-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderText zI: 1 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"
+layer at (8,50) size 79x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 80x39 [color=#008000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 2 {#text} at (0,0) size 0x0

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-191-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-191-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-191-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,50) size 78x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 79x39 [color=#008000]
+    RenderText zI: 2 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-192-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-192-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-192-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderText zI: 1 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"
+layer at (8,50) size 79x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 80x39 [color=#008000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 2 {#text} at (0,0) size 0x0

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-193-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-193-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-193-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,50) size 78x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 79x39 [color=#008000]
+    RenderText zI: 2 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-194-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-194-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-194-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderText zI: 1 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"
+layer at (8,50) size 79x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 80x39 [color=#008000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 2 {#text} at (0,0) size 0x0

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-195-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-195-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-195-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,50) size 78x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 79x39 [color=#008000]
+    RenderText zI: 2 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-196-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-196-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-196-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderText zI: 1 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"
+layer at (8,50) size 79x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 80x39 [color=#008000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderInline (generated) at (0,0) size 15x37
+        RenderText at (1,1) size 15x37
+          text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 32x37
+        RenderTableSection (anonymous) at (0,0) size 31x37
+          RenderTableRow (anonymous) at (0,0) size 31x37
+            RenderTableCell {span} at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 16x37
+                text run at (0,0) width 16: "b"
+            RenderTableCell {span} at (16,0) size 15x37 [r=0 c=1 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 15x37
+                text run at (0,0) width 15: "c"
+      RenderText {#text} at (54,1) size 25x37
+        text run at (54,1) width 9: " "
+        text run at (62,1) width 17: "d"
+    RenderText zI: 2 {#text} at (0,0) size 0x0

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-205-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-205-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-205-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,34 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderText {#text} at (1,1) size 15x37
+        text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 40x37
+        RenderTableSection (anonymous) at (0,0) size 39x37
+          RenderTableRow (anonymous) at (0,0) size 39x37
+            RenderTableCell {span} at (0,0) size 39x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 39x37
+                text run at (0,0) width 39: "bc "
+      RenderTable at (62,1) size 17x37
+        RenderTableSection (anonymous) at (0,0) size 16x37
+          RenderTableRow (anonymous) at (0,0) size 16x37
+            RenderTableCell (anonymous) at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText at (0,0) size 16x37
+                text run at (0,0) width 16: "d"
+    RenderText zI: 1 {#text} at (0,0) size 0x0
+layer at (8,50) size 78x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 79x39 [color=#008000]
+    RenderText zI: 2 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-206-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-206-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-206-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,34 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x97
+  RenderBlock {html} at (0,0) size 800x97
+    RenderBody {body} at (8,16) size 784x73
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) {div} at (0,34) size 784x39
+layer at (8,50) size 784x39
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x39 [color=#FF0000]
+    RenderText zI: 1 {#text} at (1,1) size 77x37
+      text run at (1,1) width 77: "a bc d"
+layer at (8,50) size 79x39
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 80x39 [color=#008000]
+    RenderInline {span} at (0,0) size 78x37
+      RenderText {#text} at (1,1) size 15x37
+        text run at (1,1) width 15: "a"
+      RenderText {#text} at (15,1) size 9x37
+        text run at (15,1) width 9: " "
+      RenderTable at (23,1) size 40x37
+        RenderTableSection (anonymous) at (0,0) size 39x37
+          RenderTableRow (anonymous) at (0,0) size 39x37
+            RenderTableCell {span} at (0,0) size 39x37 [r=0 c=0 rs=1 cs=1]
+              RenderText {#text} at (0,0) size 39x37
+                text run at (0,0) width 39: "bc "
+      RenderTable at (62,1) size 17x37
+        RenderTableSection (anonymous) at (0,0) size 16x37
+          RenderTableRow (anonymous) at (0,0) size 16x37
+            RenderTableCell (anonymous) at (0,0) size 16x37 [r=0 c=0 rs=1 cs=1]
+              RenderText at (0,0) size 16x37
+                text run at (0,0) width 16: "d"
+    RenderText zI: 2 {#text} at (0,0) size 0x0

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-207-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-207-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-207-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x90
+  RenderBlock {html} at (0,0) size 800x90
+    RenderBody {body} at (8,16) size 784x66
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x32
+  RenderBlock (relative positioned) {div} at (0,34) size 784x32
+layer at (8,50) size 784x32
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x32 [color=#FF0000]
+    RenderBlock {div} at (1,1) size 260x30
+      RenderInline {span} at (0,0) size 110x30
+        RenderText {#text} at (0,0) size 32x30
+          text run at (0,0) width 32: "a "
+        RenderText {#text} at (31,0) size 16x30
+          text run at (31,0) width 16: " "
+        RenderTable at (46,0) size 17x30
+          RenderTableSection (anonymous) at (0,0) size 16x30
+            RenderTableRow (anonymous) at (0,0) size 16x30
+              RenderTableCell {span} at (0,0) size 16x30 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (0,0) size 16x30
+                  text run at (0,0) width 16: "b"
+        RenderTable at (62,0) size 48x30
+          RenderTableSection (anonymous) at (0,0) size 47x30
+            RenderTableRow (anonymous) at (0,0) size 47x30
+              RenderTableCell (anonymous) at (0,0) size 47x30 [r=0 c=0 rs=1 cs=1]
+                RenderText at (0,0) size 47x30
+                  text run at (0,0) width 47: " cd"
+layer at (8,50) size 111x32
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 112x32 [color=#008000]
+    RenderBlock {div} at (1,1) size 110x30
+      RenderText {#text} at (0,0) size 110x30
+        text run at (0,0) width 110: "a  b cd"

Added: trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-208-expected.txt (0 => 191011)


--- trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-208-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-208-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -0,0 +1,35 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x90
+  RenderBlock {html} at (0,0) size 800x90
+    RenderBody {body} at (8,16) size 784x66
+      RenderBlock {p} at (0,0) size 784x18
+        RenderText {#text} at (0,0) size 386x18
+          text run at (0,0) width 386: "There should be no red below, except for antialiasing issues."
+layer at (8,50) size 784x32
+  RenderBlock (relative positioned) {div} at (0,34) size 784x32
+layer at (8,50) size 784x32
+  RenderBlock (relative positioned) zI: 1 {div} at (0,0) size 784x32 [color=#FF0000]
+    RenderBlock {div} at (1,1) size 782x30
+      RenderText {#text} at (0,0) size 110x30
+        text run at (0,0) width 110: "a  b cd"
+layer at (8,50) size 262x32
+  RenderBlock (positioned) zI: 2 {div} at (0,0) size 262x32 [color=#008000]
+    RenderBlock {div} at (1,1) size 260x30
+      RenderInline {span} at (0,0) size 110x30
+        RenderText {#text} at (0,0) size 32x30
+          text run at (0,0) width 32: "a "
+        RenderText {#text} at (31,0) size 16x30
+          text run at (31,0) width 16: " "
+        RenderTable at (46,0) size 17x30
+          RenderTableSection (anonymous) at (0,0) size 16x30
+            RenderTableRow (anonymous) at (0,0) size 16x30
+              RenderTableCell {span} at (0,0) size 16x30 [r=0 c=0 rs=1 cs=1]
+                RenderText {#text} at (0,0) size 16x30
+                  text run at (0,0) width 16: "b"
+        RenderTable at (62,0) size 48x30
+          RenderTableSection (anonymous) at (0,0) size 47x30
+            RenderTableRow (anonymous) at (0,0) size 47x30
+              RenderTableCell (anonymous) at (0,0) size 47x30 [r=0 c=0 rs=1 cs=1]
+                RenderText at (0,0) size 47x30
+                  text run at (0,0) width 47: " cd"

Modified: trunk/LayoutTests/platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.txt (191010 => 191011)


--- trunk/LayoutTests/platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.txt	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/LayoutTests/platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -1,9 +1,9 @@
-layer at (0,0) size 785x678
-  RenderView at (0,0) size 785x600
-layer at (0,0) size 785x678
-  RenderBlock {HTML} at (0,0) size 785x678
-    RenderBody {BODY} at (8,8) size 769x662
-      RenderBlock {P} at (0,0) size 769x18
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x18
         RenderText {#text} at (0,0) size 54x18
           text run at (0,0) width 54: "Test for "
         RenderInline {I} at (0,0) size 638x18
@@ -15,111 +15,89 @@
             text run at (361,0) width 330: "Safari Crashes when opening a JS TreeGrid widget"
         RenderText {#text} at (690,0) size 5x18
           text run at (690,0) width 5: "."
-      RenderBlock {P} at (0,34) size 769x72
-        RenderText {#text} at (0,0) size 766x72
-          text run at (0,0) width 686: "The test sets up an inline parent with a child that is some kind of table part. The child gets broken off into a"
-          text run at (0,18) width 742: "continuation and anonymous table parts get created below and/or above the table parts. Then the test tries to insert a"
-          text run at (0,36) width 766: "new child into the inline, specifying the table part as the \"before child\". The resulting render tree should look just like it"
-          text run at (0,54) width 238: "would look if the parent was a block."
-      RenderBlock {DIV} at (0,122) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 129x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-            RenderText {#text} at (40,0) size 89x18
-              text run at (40,0) width 89: "goes here and"
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {P} at (0,34) size 784x72
+        RenderText {#text} at (0,0) size 778x72
+          text run at (0,0) width 770: "The test sets up an inline parent with a child that is some kind of table part. The child gets broken off into a continuation"
+          text run at (0,18) width 778: "and anonymous table parts get created below and/or above the table parts. Then the test tries to insert a new child into the"
+          text run at (0,36) width 760: "inline, specifying the table part as the \"before child\". The resulting render tree should look just like it would look if the"
+          text run at (0,54) width 124: "parent was a block."
+      RenderBlock {DIV} at (0,122) size 784x18
+        RenderInline {SPAN} at (0,0) size 234x18
+          RenderText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Text..."
+          RenderText {#text} at (40,0) size 89x18
+            text run at (40,0) width 89: "goes here and"
+          RenderTable at (128,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x18
               RenderTableRow (anonymous) at (0,0) size 105x18
                 RenderTableCell {DIV} at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,158) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 106x18
+      RenderBlock {DIV} at (0,140) size 784x18
+        RenderInline {SPAN} at (0,0) size 147x18
+          RenderText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Text..."
+          RenderTable at (40,0) size 107x18
             RenderTableSection (anonymous) at (0,0) size 106x18
               RenderTableRow (anonymous) at (0,0) size 106x18
                 RenderTableCell {TD} at (0,0) size 0x0 [r=0 c=0 rs=1 cs=1]
                 RenderTableCell {DIV} at (0,0) size 106x18 [r=0 c=1 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,194) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,158) size 784x22
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,4) size 41x18
+            text run at (0,4) width 41: "Text..."
+          RenderTable at (40,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x18
               RenderTableRow {TR} at (0,0) size 105x0
               RenderTableRow (anonymous) at (0,0) size 105x18
                 RenderTableCell {DIV} at (0,0) size 105x18 [r=1 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,230) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-            RenderInline {SPAN} at (0,0) size 1x18
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,180) size 784x18
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Text..."
+          RenderInline {SPAN} at (0,0) size 1x18
+          RenderTable at (40,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x18
               RenderTableRow (anonymous) at (0,0) size 105x18
                 RenderTableCell {DIV} at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,266) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
+      RenderBlock {DIV} at (0,198) size 784x36
+        RenderBlock (anonymous) at (0,0) size 784x18
           RenderInline {SPAN} at (0,0) size 41x18
             RenderText {#text} at (0,0) size 41x18
               text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderBlock {DIV} at (0,0) size 769x0
-          RenderTable at (0,0) size 105x18
+        RenderBlock (anonymous) at (0,18) size 784x0
+          RenderBlock {DIV} at (0,0) size 784x0
+        RenderBlock (anonymous) at (0,18) size 784x18
+          RenderInline {SPAN} at (0,0) size 105x18
+            RenderTable at (0,0) size 105x18
+              RenderTableSection (anonymous) at (0,0) size 105x18
+                RenderTableRow (anonymous) at (0,0) size 105x18
+                  RenderTableCell {DIV} at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
+                    RenderText {#text} at (0,0) size 105x18
+                      text run at (0,0) width 105: "...continues here"
+      RenderBlock {DIV} at (0,234) size 784x18
+        RenderInline {SPAN} at (0,0) size 234x18
+          RenderText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Text..."
+          RenderText {#text} at (40,0) size 89x18
+            text run at (40,0) width 89: "goes here and"
+          RenderTable at (128,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x18
-              RenderTableRow (anonymous) at (0,0) size 105x18
-                RenderTableCell {DIV} at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
-                  RenderText {#text} at (0,0) size 105x18
-                    text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,302) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 129x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-            RenderText {#text} at (40,0) size 89x18
-              text run at (40,0) width 89: "goes here and"
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
-            RenderTableSection (anonymous) at (0,0) size 105x18
               RenderTableRow {DIV} at (0,0) size 105x18
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,338) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,252) size 784x22
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,4) size 41x18
+            text run at (0,4) width 41: "Text..."
+          RenderTable at (40,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x18
               RenderTableRow (anonymous) at (0,0) size 105x0
                 RenderTableCell {TD} at (0,0) size 105x0 [r=0 c=0 rs=1 cs=1]
@@ -127,76 +105,60 @@
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=1 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,374) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,274) size 784x22
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,4) size 41x18
+            text run at (0,4) width 41: "Text..."
+          RenderTable at (40,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x18
               RenderTableRow {TR} at (0,0) size 105x0
               RenderTableRow {DIV} at (0,0) size 105x18
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=1 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,410) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-            RenderInline {SPAN} at (0,0) size 1x18
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,296) size 784x18
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Text..."
+          RenderInline {SPAN} at (0,0) size 1x18
+          RenderTable at (40,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x18
               RenderTableRow {DIV} at (0,0) size 105x18
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,446) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
+      RenderBlock {DIV} at (0,314) size 784x36
+        RenderBlock (anonymous) at (0,0) size 784x18
           RenderInline {SPAN} at (0,0) size 41x18
             RenderText {#text} at (0,0) size 41x18
               text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderBlock {DIV} at (0,0) size 769x0
-          RenderTable at (0,0) size 105x18
-            RenderTableSection (anonymous) at (0,0) size 105x18
-              RenderTableRow {DIV} at (0,0) size 105x18
-                RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
-                  RenderText {#text} at (0,0) size 105x18
-                    text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,482) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 129x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-            RenderText {#text} at (40,0) size 89x18
-              text run at (40,0) width 89: "goes here and"
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+        RenderBlock (anonymous) at (0,18) size 784x0
+          RenderBlock {DIV} at (0,0) size 784x0
+        RenderBlock (anonymous) at (0,18) size 784x18
+          RenderInline {SPAN} at (0,0) size 105x18
+            RenderTable at (0,0) size 105x18
+              RenderTableSection (anonymous) at (0,0) size 105x18
+                RenderTableRow {DIV} at (0,0) size 105x18
+                  RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
+                    RenderText {#text} at (0,0) size 105x18
+                      text run at (0,0) width 105: "...continues here"
+      RenderBlock {DIV} at (0,350) size 784x18
+        RenderInline {SPAN} at (0,0) size 234x18
+          RenderText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Text..."
+          RenderText {#text} at (40,0) size 89x18
+            text run at (40,0) width 89: "goes here and"
+          RenderTable at (128,0) size 106x18
             RenderTableSection {DIV} at (0,0) size 105x18
               RenderTableRow (anonymous) at (0,0) size 105x18
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,518) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,368) size 784x22
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,4) size 41x18
+            text run at (0,4) width 41: "Text..."
+          RenderTable at (40,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x0
               RenderTableRow (anonymous) at (0,0) size 105x0
                 RenderTableCell {TD} at (0,0) size 105x0 [r=0 c=0 rs=1 cs=1]
@@ -205,15 +167,11 @@
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,554) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,390) size 784x22
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,4) size 41x18
+            text run at (0,4) width 41: "Text..."
+          RenderTable at (40,0) size 106x18
             RenderTableSection (anonymous) at (0,0) size 105x0
               RenderTableRow {TR} at (0,0) size 105x0
             RenderTableSection {DIV} at (0,0) size 105x18
@@ -221,35 +179,29 @@
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,590) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
-          RenderInline {SPAN} at (0,0) size 41x18
-            RenderText {#text} at (0,0) size 41x18
-              text run at (0,0) width 41: "Text..."
-            RenderInline {SPAN} at (0,0) size 1x18
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderTable at (0,0) size 105x18
+      RenderBlock {DIV} at (0,412) size 784x18
+        RenderInline {SPAN} at (0,0) size 146x18
+          RenderText {#text} at (0,0) size 41x18
+            text run at (0,0) width 41: "Text..."
+          RenderInline {SPAN} at (0,0) size 1x18
+          RenderTable at (40,0) size 106x18
             RenderTableSection {DIV} at (0,0) size 105x18
               RenderTableRow (anonymous) at (0,0) size 105x18
                 RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
                   RenderText {#text} at (0,0) size 105x18
                     text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
-      RenderBlock {DIV} at (0,626) size 769x36
-        RenderBlock (anonymous) at (0,0) size 769x18
+      RenderBlock {DIV} at (0,430) size 784x36
+        RenderBlock (anonymous) at (0,0) size 784x18
           RenderInline {SPAN} at (0,0) size 41x18
             RenderText {#text} at (0,0) size 41x18
               text run at (0,0) width 41: "Text..."
-        RenderBlock (anonymous) at (0,18) size 769x18
-          RenderBlock {DIV} at (0,0) size 769x0
-          RenderTable at (0,0) size 105x18
-            RenderTableSection {DIV} at (0,0) size 105x18
-              RenderTableRow (anonymous) at (0,0) size 105x18
-                RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
-                  RenderText {#text} at (0,0) size 105x18
-                    text run at (0,0) width 105: "...continues here"
-        RenderBlock (anonymous) at (0,36) size 769x0
-          RenderInline {SPAN} at (0,0) size 0x0
+        RenderBlock (anonymous) at (0,18) size 784x0
+          RenderBlock {DIV} at (0,0) size 784x0
+        RenderBlock (anonymous) at (0,18) size 784x18
+          RenderInline {SPAN} at (0,0) size 105x18
+            RenderTable at (0,0) size 105x18
+              RenderTableSection {DIV} at (0,0) size 105x18
+                RenderTableRow (anonymous) at (0,0) size 105x18
+                  RenderTableCell (anonymous) at (0,0) size 105x18 [r=0 c=0 rs=1 cs=1]
+                    RenderText {#text} at (0,0) size 105x18
+                      text run at (0,0) width 105: "...continues here"

Modified: trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug3037-1-expected.txt (191010 => 191011)


--- trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug3037-1-expected.txt	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/LayoutTests/platform/mac/tables/mozilla/bugs/bug3037-1-expected.txt	2015-10-13 22:53:46 UTC (rev 191011)
@@ -3,38 +3,30 @@
 layer at (0,0) size 800x600
   RenderBlock {HTML} at (0,0) size 800x600
     RenderBody {BODY} at (8,8) size 784x584
-      RenderBlock (anonymous) at (0,0) size 784x0
-        RenderInline {WINDOW} at (0,0) size 0x0
+      RenderInline {WINDOW} at (0,0) size 34x18
+        RenderText {#text} at (0,0) size 0x0
+        RenderInline {WINDOW} at (0,0) size 34x18
           RenderText {#text} at (0,0) size 0x0
-          RenderInline {WINDOW} at (0,0) size 0x0
+          RenderInline {WINDOW} at (0,0) size 34x18
             RenderText {#text} at (0,0) size 0x0
-            RenderInline {WINDOW} at (0,0) size 0x0
+            RenderInline {XUL:TOOLBOX} at (0,0) size 34x18
               RenderText {#text} at (0,0) size 0x0
-              RenderInline {XUL:TOOLBOX} at (0,0) size 0x0
+              RenderInline {XUL:TOOLBAR} at (0,0) size 34x18
                 RenderText {#text} at (0,0) size 0x0
-                RenderInline {XUL:TOOLBAR} at (0,0) size 0x0
-                  RenderText {#text} at (0,0) size 0x0
-      RenderBlock (anonymous) at (0,0) size 784x18
-        RenderTable at (0,0) size 34x18
-          RenderTableSection (anonymous) at (0,0) size 34x18
-            RenderTableRow (anonymous) at (0,0) size 34x18
-              RenderTableCell {HTML:SPAN} at (0,0) size 33x18 [r=0 c=0 rs=1 cs=1]
-                RenderInline {HTML:BUTTON} at (0,0) size 33x18 [bgcolor=#C0C0C0]
-                  RenderText {#text} at (0,0) size 0x0
-                  RenderInline {HTML:IMG} at (0,0) size 33x18
-                    RenderInline {HTML:BR} at (0,0) size 33x18
-                      RenderText {#text} at (0,0) size 33x18
-                        text run at (0,0) width 33: "Back"
-                RenderText {#text} at (0,0) size 0x0
-              RenderTableCell {HTML:SPAN} at (33,0) size 1x0 [r=0 c=1 rs=1 cs=1]
-                RenderInline {HTML:INPUT} at (0,0) size 0x0
-                RenderText {#text} at (0,0) size 0x0
-      RenderBlock (anonymous) at (0,18) size 784x0
-        RenderInline {WINDOW} at (0,0) size 0x0
-          RenderInline {WINDOW} at (0,0) size 0x0
-            RenderInline {WINDOW} at (0,0) size 0x0
-              RenderInline {XUL:TOOLBOX} at (0,0) size 0x0
-                RenderInline {XUL:TOOLBAR} at (0,0) size 0x0
-                RenderText {#text} at (0,0) size 0x0
+                RenderTable at (0,0) size 34x18
+                  RenderTableSection (anonymous) at (0,0) size 34x18
+                    RenderTableRow (anonymous) at (0,0) size 34x18
+                      RenderTableCell {HTML:SPAN} at (0,0) size 33x18 [r=0 c=0 rs=1 cs=1]
+                        RenderInline {HTML:BUTTON} at (0,0) size 33x18 [bgcolor=#C0C0C0]
+                          RenderText {#text} at (0,0) size 0x0
+                          RenderInline {HTML:IMG} at (0,0) size 33x18
+                            RenderInline {HTML:BR} at (0,0) size 33x18
+                              RenderText {#text} at (0,0) size 33x18
+                                text run at (0,0) width 33: "Back"
+                        RenderText {#text} at (0,0) size 0x0
+                      RenderTableCell {HTML:SPAN} at (33,0) size 1x0 [r=0 c=1 rs=1 cs=1]
+                        RenderInline {HTML:INPUT} at (0,0) size 0x0
+                        RenderText {#text} at (0,0) size 0x0
               RenderText {#text} at (0,0) size 0x0
             RenderText {#text} at (0,0) size 0x0
+          RenderText {#text} at (0,0) size 0x0

Modified: trunk/Source/WebCore/ChangeLog (191010 => 191011)


--- trunk/Source/WebCore/ChangeLog	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/Source/WebCore/ChangeLog	2015-10-13 22:53:46 UTC (rev 191011)
@@ -1,3 +1,28 @@
+2015-10-13  Zalan Bujtas  <[email protected]>
+
+        Anonymous table objects: inline parent box requires inline-table child.
+        https://bugs.webkit.org/show_bug.cgi?id=150090
+
+        Reviewed by David Hyatt.
+
+        According to the CSS2.1 specification, if a child needs anonymous table wrapper
+        and the child's parent is an inline box, the generated table needs to be inline-table.
+        (inline-block and block parents generate non-inline table) 
+
+        Import W3C CSS2.1 anonymous table tests.
+
+        * rendering/RenderElement.cpp:
+        (WebCore::RenderElement::childRequiresTable):
+        (WebCore::RenderElement::addChild):
+        * rendering/RenderElement.h:
+        * rendering/RenderInline.cpp:
+        (WebCore::RenderInline::newChildIsInline):
+        (WebCore::RenderInline::addChildIgnoringContinuation):
+        (WebCore::RenderInline::addChildToContinuation):
+        * rendering/RenderInline.h:
+        * rendering/RenderTable.cpp:
+        (WebCore::RenderTable::createAnonymousWithParentRenderer):
+
 2015-10-13  Dean Jackson  <[email protected]>
 
         Device motion and orientation should only be visible from the main frame's security origin

Modified: trunk/Source/WebCore/rendering/RenderElement.cpp (191010 => 191011)


--- trunk/Source/WebCore/rendering/RenderElement.cpp	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/Source/WebCore/rendering/RenderElement.cpp	2015-10-13 22:53:46 UTC (rev 191011)
@@ -488,24 +488,31 @@
     }
 }
 
-void RenderElement::addChild(RenderObject* newChild, RenderObject* beforeChild)
+bool RenderElement::childRequiresTable(const RenderObject& child) const
 {
-    bool needsTable = false;
-
-    if (is<RenderTableCol>(*newChild)) {
-        RenderTableCol& newTableColumn = downcast<RenderTableCol>(*newChild);
+    if (is<RenderTableCol>(child)) {
+        const RenderTableCol& newTableColumn = downcast<RenderTableCol>(child);
         bool isColumnInColumnGroup = newTableColumn.isTableColumn() && is<RenderTableCol>(*this);
-        needsTable = !is<RenderTable>(*this) && !isColumnInColumnGroup;
-    } else if (is<RenderTableCaption>(*newChild))
-        needsTable = !is<RenderTable>(*this);
-    else if (is<RenderTableSection>(*newChild))
-        needsTable = !is<RenderTable>(*this);
-    else if (is<RenderTableRow>(*newChild))
-        needsTable = !is<RenderTableSection>(*this);
-    else if (is<RenderTableCell>(*newChild))
-        needsTable = !is<RenderTableRow>(*this);
+        return !is<RenderTable>(*this) && !isColumnInColumnGroup;
+    }
+    if (is<RenderTableCaption>(child))
+        return !is<RenderTable>(*this);
 
-    if (needsTable) {
+    if (is<RenderTableSection>(child))
+        return !is<RenderTable>(*this);
+
+    if (is<RenderTableRow>(child))
+        return !is<RenderTableSection>(*this);
+
+    if (is<RenderTableCell>(child))
+        return !is<RenderTableRow>(*this);
+
+    return false;
+}
+
+void RenderElement::addChild(RenderObject* newChild, RenderObject* beforeChild)
+{
+    if (childRequiresTable(*newChild)) {
         RenderTable* table;
         RenderObject* afterChild = beforeChild ? beforeChild->previousSibling() : m_lastChild;
         if (afterChild && afterChild->isAnonymous() && is<RenderTable>(*afterChild) && !afterChild->isBeforeContent())

Modified: trunk/Source/WebCore/rendering/RenderElement.h (191010 => 191011)


--- trunk/Source/WebCore/rendering/RenderElement.h	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/Source/WebCore/rendering/RenderElement.h	2015-10-13 22:53:46 UTC (rev 191011)
@@ -211,6 +211,8 @@
     const RenderElement* enclosingRendererWithTextDecoration(TextDecoration, bool firstLine) const;
     void drawLineForBoxSide(GraphicsContext&, const FloatRect&, BoxSide, Color, EBorderStyle, float adjacentWidth1, float adjacentWidth2, bool antialias = false) const;
 
+    bool childRequiresTable(const RenderObject& child) const;
+
 protected:
     enum BaseTypeFlags {
         RenderLayerModelObjectFlag = 1 << 0,

Modified: trunk/Source/WebCore/rendering/RenderInline.cpp (191010 => 191011)


--- trunk/Source/WebCore/rendering/RenderInline.cpp	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/Source/WebCore/rendering/RenderInline.cpp	2015-10-13 22:53:46 UTC (rev 191011)
@@ -298,6 +298,12 @@
     return last;
 }
 
+static bool newChildIsInline(const RenderObject& newChild, const RenderInline& parent)
+{
+    // inline parent generates inline-table.
+    return newChild.isInline() | (parent.childRequiresTable(newChild) && parent.style().display() == INLINE);
+}
+
 void RenderInline::addChildIgnoringContinuation(RenderObject* newChild, RenderObject* beforeChild)
 {
     // Make sure we don't append things after :after-generated content if we have it.
@@ -305,9 +311,9 @@
         beforeChild = lastChild();
     
     bool useNewBlockInsideInlineModel = document().settings()->newBlockInsideInlineModelEnabled();
-    
+    bool childInline = newChildIsInline(*newChild, *this);
     // This code is for the old block-inside-inline model that uses continuations.
-    if (!useNewBlockInsideInlineModel && !newChild->isInline() && !newChild->isFloatingOrOutOfFlowPositioned()) {
+    if (!useNewBlockInsideInlineModel && !childInline && !newChild->isFloatingOrOutOfFlowPositioned()) {
         // We are placing a block inside an inline. We have to perform a split of this
         // inline into continuations.  This involves creating an anonymous block box to hold
         // |newChild|.  We then make that block box a continuation of this inline.  We take all of
@@ -345,14 +351,14 @@
         ASSERT(beforeChild->parent());
         ASSERT(beforeChild->parent()->isAnonymousInlineBlock() || beforeChild->parent()->isAnonymousBlock());
         if (beforeChild->parent()->isAnonymousInlineBlock()) {
-            if (!newChild->isInline() || (newChild->isInline() && beforeChild->parent()->firstChild() != beforeChild))
+            if (!childInline || (childInline && beforeChild->parent()->firstChild() != beforeChild))
                 beforeChild->parent()->addChild(newChild, beforeChild);
             else
                 addChild(newChild, beforeChild->parent());
         } else if (beforeChild->parent()->isAnonymousBlock()) {
             ASSERT(!beforeChild->parent()->parent() || beforeChild->parent()->parent()->isAnonymousInlineBlock());
-            ASSERT(beforeChild->isInline());
-            if (newChild->isInline() || (!newChild->isInline() && beforeChild->parent()->firstChild() != beforeChild))
+            ASSERT(childInline);
+            if (childInline || (!childInline && beforeChild->parent()->firstChild() != beforeChild))
                 beforeChild->parent()->addChild(newChild, beforeChild);
             else
                 addChild(newChild, beforeChild->parent());
@@ -360,7 +366,7 @@
         return;
     }
 
-    if (!newChild->isInline()) {
+    if (!childInline) {
         // We are placing a block inside an inline. We have to place the block inside an anonymous inline-block.
         // This inline-block can house a sequence of contiguous block-level children, and they will all sit on the
         // same "line" together. We try to reuse an existing inline-block if possible.
@@ -579,7 +585,7 @@
 
     // A continuation always consists of two potential candidates: an inline or an anonymous
     // block box holding block children.
-    bool childInline = newChild->isInline();
+    bool childInline = newChildIsInline(*newChild, *this);
     bool bcpInline = beforeChildParent->isInline();
     bool flowInline = flow->isInline();
 

Modified: trunk/Source/WebCore/rendering/RenderTable.cpp (191010 => 191011)


--- trunk/Source/WebCore/rendering/RenderTable.cpp	2015-10-13 22:17:50 UTC (rev 191010)
+++ trunk/Source/WebCore/rendering/RenderTable.cpp	2015-10-13 22:53:46 UTC (rev 191011)
@@ -1530,7 +1530,7 @@
 
 RenderTable* RenderTable::createAnonymousWithParentRenderer(const RenderObject* parent)
 {
-    auto table = new RenderTable(parent->document(), RenderStyle::createAnonymousStyleWithDisplay(&parent->style(), TABLE));
+    auto table = new RenderTable(parent->document(), RenderStyle::createAnonymousStyleWithDisplay(&parent->style(), parent->style().display() == INLINE ? INLINE_TABLE : TABLE));
     table->initializeStyle();
     return table;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to