Index: Source/WebCore/rendering/RenderBlock.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderBlock.cpp (revision 97085) |
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy) |
@@ -1557,13 +1557,9 @@ |
if (!child->isRenderBlock()) |
return false; |
- // Get the next non-positioned/non-floating RenderBlock. |
RenderBlock* blockRunIn = toRenderBlock(child); |
RenderObject* curr = blockRunIn->nextSibling(); |
- while (curr && curr->isFloatingOrPositioned()) |
- curr = curr->nextSibling(); |
- |
- if (!curr || !curr->isRenderBlock() || !curr->childrenInline() || curr->isRunIn() || curr->isAnonymous()) |
+ if (!curr || !curr->isRenderBlock() || !curr->childrenInline() || curr->isRunIn() || curr->isAnonymous() || curr->isFloatingOrPositioned()) |
return false; |
RenderBlock* currBlock = toRenderBlock(curr); |