Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 136285) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -675,6 +675,7 @@ |
// We can reuse this block and make it the preBlock of the next continuation. |
pre = block; |
pre->removePositionedObjects(0); |
+ pre->removeFloatingObjects(); |
block = toRenderBlock(block->parent()); |
} else { |
// No anonymous block available for use. Make one. |
@@ -3761,6 +3762,15 @@ |
removePositionedObject(deadObjects.at(i)); |
} |
+void RenderBlock::removeFloatingObjects() |
+{ |
+ if (!m_floatingObjects) |
+ return; |
+ |
+ deleteAllValues(m_floatingObjects->set()); |
+ m_floatingObjects->clear(); |
+} |
+ |
RenderBlock::FloatingObject* RenderBlock::insertFloatingObject(RenderBox* o) |
{ |
ASSERT(o->isFloating()); |