Index: Source/WebCore/rendering/RenderTable.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTable.cpp (revision 97084) |
+++ Source/WebCore/rendering/RenderTable.cpp (working copy) |
@@ -180,6 +180,15 @@ |
return; |
} |
+ if (beforeChild && !beforeChild->isAnonymous() && beforeChild->parent() == this) { |
+ RenderObject* section = beforeChild->previousSibling(); |
+ if (section && section->isTableSection()) { |
+ ASSERT(section->isAnonymous()); |
+ section->addChild(child); |
+ return; |
+ } |
+ } |
+ |
RenderObject* lastBox = beforeChild; |
while (lastBox && lastBox->parent()->isAnonymous() && !lastBox->isTableSection() && lastBox->style()->display() != TABLE_CAPTION && lastBox->style()->display() != TABLE_COLUMN_GROUP) |
lastBox = lastBox->parent(); |