Index: Source/WebCore/rendering/RenderTableSection.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTableSection.cpp (revision 115616) |
+++ Source/WebCore/rendering/RenderTableSection.cpp (working copy) |
@@ -181,9 +181,8 @@ |
if (!beforeChild) |
setRowLogicalHeightToRowStyleLogicalHeightIfNotRelative(m_grid[insertionRow]); |
- // If the next renderer is actually wrapped in an anonymous table row, we need to go up and find that. |
- while (beforeChild && beforeChild->parent() != this) |
- beforeChild = beforeChild->parent(); |
+ if (beforeChild && beforeChild->parent() != this) |
+ beforeChild = splitAnonymousBoxesAroundChild(beforeChild); |
ASSERT(!beforeChild || beforeChild->isTableRow()); |
RenderBox::addChild(child, beforeChild); |