Index: Source/WebCore/rendering/RenderTableRow.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTableRow.cpp (revision 97084) |
+++ Source/WebCore/rendering/RenderTableRow.cpp (working copy) |
@@ -97,6 +97,15 @@ |
return; |
} |
+ if (beforeChild && !beforeChild->isAnonymous() && beforeChild->parent() == this) { |
+ RenderObject* cell = beforeChild->previousSibling(); |
+ if (cell && cell->isTableCell()) { |
+ ASSERT(cell->isAnonymous()); |
+ cell->addChild(child); |
+ return; |
+ } |
+ } |
+ |
// If beforeChild is inside an anonymous cell, insert into the cell. |
if (last && !last->isTableCell() && last->parent() && last->parent()->isAnonymous() && !last->parent()->isBeforeOrAfterContent()) { |
last->parent()->addChild(child, beforeChild); |