Index: Source/WebCore/rendering/RenderBox.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBox.cpp (revision 86860) |
+++ Source/WebCore/rendering/RenderBox.cpp (working copy) |
@@ -223,7 +223,7 @@ |
for (RenderObject* curr = parent(); curr && !curr->isRenderView(); curr = curr->parent()) { |
if (curr->isRenderBlock()) { |
RenderBlock* currBlock = toRenderBlock(curr); |
- if (currBlock->containsFloat(this)) |
+ if (!parentBlock || currBlock->containsFloat(this)) |
parentBlock = currBlock; |
} |
} |