display: table-cell; bug when resizing window
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Oct 2015 22:33:03 +0000 (22:33 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Oct 2015 22:33:03 +0000 (22:33 +0000)
commitb46fc6bcb8f3220ca172a6a301d8ab64d828e273
treeca681019a51cc9344344d8d0c0096e73f5f0e2a6
parent9d7614100bb322018e4837f610034e9e057b01cb
display: table-cell; bug when resizing window
https://bugs.webkit.org/show_bug.cgi?id=138167

Reviewed by David Hyatt.

Clean up anonymous table wrappers all the way up to RenderTable.
This patch ensures that we don't keep the generated RenderTable/RenderSection/RenderCaption/RenderRow
objects around in the tree anymore when the last child is destroyed.

Import W3C CSS2.1 anonymous table tests.

Source/WebCore:

* rendering/RenderObject.cpp:
(WebCore::RenderObject::destroyAndCleanupAnonymousWrappers):

LayoutTests:

* css2.1/tables/table-anonymous-objects-015.xht: Added.
* css2.1/tables/table-anonymous-objects-016.xht: Added.
* css2.1/tables/table-anonymous-objects-023.xht: Added.
* css2.1/tables/table-anonymous-objects-024.xht: Added.
* css2.1/tables/table-anonymous-objects-035.xht: Added.
* css2.1/tables/table-anonymous-objects-036.xht: Added.
* css2.1/tables/table-anonymous-objects-037.xht: Added.
* css2.1/tables/table-anonymous-objects-038.xht: Added.
* css2.1/tables/table-anonymous-objects-045.xht: Added.
* css2.1/tables/table-anonymous-objects-046.xht: Added.
* css2.1/tables/table-anonymous-objects-047.xht: Added.
* css2.1/tables/table-anonymous-objects-048.xht: Added.
* css2.1/tables/table-anonymous-objects-049.xht: Added.
* css2.1/tables/table-anonymous-objects-050.xht: Added.
* css2.1/tables/table-anonymous-objects-055.xht: Added.
* css2.1/tables/table-anonymous-objects-056.xht: Added.
* css2.1/tables/table-anonymous-objects-091.xht: Added.
* css2.1/tables/table-anonymous-objects-092.xht: Added.
* css2.1/tables/table-anonymous-objects-099.xht: Added.
* css2.1/tables/table-anonymous-objects-100.xht: Added.
* css2.1/tables/table-anonymous-objects-105.xht: Added.
* css2.1/tables/table-anonymous-objects-106.xht: Added.
* css2.1/tables/table-anonymous-objects-107.xht: Added.
* css2.1/tables/table-anonymous-objects-108.xht: Added.
* css2.1/tables/table-anonymous-objects-109.xht: Added.
* css2.1/tables/table-anonymous-objects-110.xht: Added.
* css2.1/tables/table-anonymous-objects-111.xht: Added.
* css2.1/tables/table-anonymous-objects-112.xht: Added.
* css2.1/tables/table-anonymous-objects-113.xht: Added.
* css2.1/tables/table-anonymous-objects-114.xht: Added.
* css2.1/tables/table-anonymous-objects-115.xht: Added.
* css2.1/tables/table-anonymous-objects-116.xht: Added.
* css2.1/tables/table-anonymous-objects-121.xht: Added.
* css2.1/tables/table-anonymous-objects-122.xht: Added.
* css2.1/tables/table-anonymous-objects-123.xht: Added.
* css2.1/tables/table-anonymous-objects-124.xht: Added.
* css2.1/tables/table-anonymous-objects-139.xht: Added.
* css2.1/tables/table-anonymous-objects-140.xht: Added.
* css2.1/tables/table-anonymous-objects-149.xht: Added.
* css2.1/tables/table-anonymous-objects-150.xht: Added.
* css2.1/tables/table-anonymous-objects-155.xht: Added.
* css2.1/tables/table-anonymous-objects-156.xht: Added.
* css2.1/tables/table-anonymous-objects-159.xht: Added.
* css2.1/tables/table-anonymous-objects-160.xht: Added.
* css2.1/tables/table-anonymous-objects-165.xht: Added.
* css2.1/tables/table-anonymous-objects-166.xht: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-015-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-016-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-023-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-024-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-035-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-036-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-037-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-038-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-045-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-046-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-047-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-048-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-049-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-050-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-055-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-056-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-091-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-092-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-099-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-100-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-105-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-106-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-107-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-108-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-109-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-110-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-111-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-112-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-113-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-114-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-115-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-116-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-121-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-122-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-123-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-124-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-139-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-140-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-149-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-150-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-155-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-156-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-159-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-160-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-165-expected.txt: Added.
* platform/mac/css2.1/tables/table-anonymous-objects-166-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@190893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
95 files changed:
LayoutTests/ChangeLog
LayoutTests/css2.1/tables/table-anonymous-objects-015.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-016.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-023.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-024.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-035.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-036.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-037.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-038.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-045.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-046.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-047.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-048.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-049.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-050.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-055.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-056.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-091.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-092.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-099.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-100.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-105.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-106.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-107.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-108.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-109.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-110.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-111.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-112.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-113.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-114.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-115.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-116.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-121.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-122.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-123.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-124.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-139.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-140.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-149.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-150.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-155.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-156.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-159.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-160.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-165.xht [new file with mode: 0755]
LayoutTests/css2.1/tables/table-anonymous-objects-166.xht [new file with mode: 0755]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-015-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-016-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-023-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-024-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-035-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-036-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-037-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-038-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-045-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-046-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-047-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-048-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-049-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-050-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-055-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-056-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-091-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-092-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-099-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-100-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-105-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-106-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-107-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-108-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-109-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-110-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-111-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-112-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-113-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-114-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-115-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-116-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-121-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-122-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-123-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-124-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-139-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-140-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-149-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-150-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-155-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-156-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-159-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-160-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-165-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/css2.1/tables/table-anonymous-objects-166-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderObject.cpp