| Index: Source/WebCore/rendering/RenderBlock.cpp
|
| ===================================================================
|
| --- Source/WebCore/rendering/RenderBlock.cpp (revision 109413)
|
| +++ Source/WebCore/rendering/RenderBlock.cpp (working copy)
|
| @@ -653,8 +653,10 @@
|
| {
|
| ASSERT(beforeChild->isTablePart());
|
|
|
| - while (beforeChild->parent() != this && !beforeChild->isTable()) {
|
| + while (beforeChild->parent() != this) {
|
| RenderObject* tablePartToSplit = beforeChild->parent();
|
| + if (!tablePartToSplit->isTablePart() && !tablePartToSplit->isTable())
|
| + break;
|
| if (tablePartToSplit->firstChild() != beforeChild) {
|
| // Get our table container.
|
| RenderObject* curr = tablePartToSplit;
|
| @@ -662,7 +664,7 @@
|
| curr = curr->parent();
|
| RenderTable* table = toRenderTable(curr);
|
|
|
| - // Create an anonymous table container next to our table container.
|
| + // Create an anonymous table container next to our table container.
|
| RenderBlock* parentBlock = toRenderBlock(table->parent());
|
| RenderTable* postTable = parentBlock->createAnonymousTable();
|
| parentBlock->children()->insertChildNode(parentBlock, postTable, table->nextSibling());
|
|
|