Index: Source/WebCore/rendering/RenderTable.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTable.cpp (revision 95468) |
+++ Source/WebCore/rendering/RenderTable.cpp (working copy) |
@@ -107,8 +107,10 @@ |
void RenderTable::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); |
+ } |
bool wrapInAnonymousSection = !child->isPositioned(); |