<rdar://problem/10246137> Duplicate ::after content when both ::before and ::after...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Oct 2011 00:46:53 +0000 (00:46 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Oct 2011 00:46:53 +0000 (00:46 +0000)
commit40fa1b8303c03b2571ec98247176bb3afdd5ed09
treeaf7ab57e03d09026dc8e9b556d977773c121b2a6
parente81166b99cfdfaa5db0063c6d20a6a46efa21410
<rdar://problem/10246137> Duplicate ::after content when both ::before and ::after are styled as table parts

Reviewed by Sam Weinig.

Source/WebCore:

Test: fast/css-generated-content/table-parts-before-and-after.html

* rendering/RenderObject.cpp:
(WebCore::RenderObject::addChild): Prevented table part childern after a ::before table from being merged
into it.
* rendering/RenderTable.cpp:
(WebCore::RenderTable::addChild): Prevented children after a ::before table section from being merged
into it.

LayoutTests:

* fast/css-generated-content/table-parts-before-and-after-expected.png: Added.
* fast/css-generated-content/table-parts-before-and-after-expected.txt: Added.
* fast/css-generated-content/table-parts-before-and-after.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@97114 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css-generated-content/table-parts-before-and-after-expected.png [new file with mode: 0644]
LayoutTests/fast/css-generated-content/table-parts-before-and-after-expected.txt [new file with mode: 0644]
LayoutTests/fast/css-generated-content/table-parts-before-and-after.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderTable.cpp