Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 105342) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -4021,13 +4021,17 @@ |
} |
} |
-void RenderBlock::markSiblingsWithFloatsForLayout() |
+void RenderBlock::markSiblingsWithFloatsForLayout(RenderBox* floatToRemove) |
{ |
+ if (!m_floatingObjects) |
+ return; |
const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set(); |
FloatingObjectSetIterator end = floatingObjectSet.end(); |
for (FloatingObjectSetIterator it = floatingObjectSet.begin(); it != end; ++it) { |
if (logicalBottomForFloat(*it) > logicalHeight()) { |
RenderBox* floatingBox = (*it)->renderer(); |
+ if (floatToRemove && floatingBox != floatToRemove) |
+ continue; |
RenderObject* next = nextSibling(); |
while (next) { |