Index: Source/WebCore/rendering/RenderTableSection.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTableSection.cpp (revision 95468) |
+++ Source/WebCore/rendering/RenderTableSection.cpp (working copy) |
@@ -98,8 +98,10 @@ |
void RenderTableSection::addChild(RenderObject* child, RenderObject* beforeChild) |
{ |
// Make sure we don't append things after :after-generated content if we have it. |
- if (!beforeChild && isAfterContent(lastChild())) |
- beforeChild = lastChild(); |
+ if (!beforeChild) { |
+ if (RenderObject* afterContentRenderer = findAfterContentRenderer()) |
+ beforeChild = anonymousContainer(afterContentRenderer); |
+ } |
if (!child->isTableRow()) { |
RenderObject* last = beforeChild; |