Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 109985) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -1153,11 +1153,15 @@ |
parent->setNeedsLayoutAndPrefWidthsRecalc(); |
parent->setChildrenInline(child->childrenInline()); |
RenderObject* nextSibling = child->nextSibling(); |
+ |
+ RenderFlowThread* childFlowThread = child->enclosingRenderFlowThread(); |
RenderBlock* anonBlock = toRenderBlock(parent->children()->removeChildNode(parent, child, child->hasLayer())); |
anonBlock->moveAllChildrenTo(parent, nextSibling, child->hasLayer()); |
// Delete the now-empty block's lines and nuke it. |
if (!parent->documentBeingDestroyed()) |
anonBlock->deleteLineBoxTree(); |
+ if (childFlowThread && !parent->documentBeingDestroyed()) |
+ childFlowThread->removeFlowChildInfo(anonBlock); |
anonBlock->destroy(); |
} |