Index: Source/WebCore/rendering/RenderObject.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderObject.cpp (revision 97115) |
+++ Source/WebCore/rendering/RenderObject.cpp (working copy) |
@@ -317,7 +317,7 @@ |
if (needsTable) { |
RenderTable* table; |
RenderObject* afterChild = beforeChild ? beforeChild->previousSibling() : children->lastChild(); |
- if (afterChild && afterChild->isAnonymous() && afterChild->isTable()) |
+ if (afterChild && afterChild->isAnonymous() && afterChild->isTable() && !afterChild->isBeforeContent()) |
table = toRenderTable(afterChild); |
else { |
table = new (renderArena()) RenderTable(document() /* is anonymous */); |