Index: Source/WebCore/rendering/RenderTableSection.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTableSection.cpp (revision 93882) |
+++ Source/WebCore/rendering/RenderTableSection.cpp (working copy) |
@@ -96,7 +96,7 @@ |
RenderObject* last = beforeChild; |
if (!last) |
last = lastChild(); |
- if (last && last->isAnonymous()) { |
+ if (last && last->isAnonymous() && !isAfterContent(last) && !isBeforeContent(last)) { |
if (beforeChild == last) |
beforeChild = last->firstChild(); |
last->addChild(child, beforeChild); |
@@ -108,7 +108,7 @@ |
RenderObject* lastBox = last; |
while (lastBox && lastBox->parent()->isAnonymous() && !lastBox->isTableRow()) |
lastBox = lastBox->parent(); |
- if (lastBox && lastBox->isAnonymous()) { |
+ if (lastBox && lastBox->isAnonymous() && !isAfterContent(lastBox) && !isBeforeContent(lastBox)) { |
lastBox->addChild(child, beforeChild); |
return; |
} |