Index: Source/core/rendering/RenderObject.cpp |
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp |
index d1d495c169724088b5fab5544249eceb017216c8..4589b3a7ba3a7c7a35b83e68a19015e0b20a4d4b 100644 |
--- a/Source/core/rendering/RenderObject.cpp |
+++ b/Source/core/rendering/RenderObject.cpp |
@@ -833,6 +833,9 @@ RenderBlock* RenderObject::containingBlock() const |
o = o->parent(); |
} |
+ if (o && !o->isRenderBlock()) |
+ o = o->containingBlock(); |
+ |
while (o && o->isAnonymousBlock()) |
o = o->containingBlock(); |
} else { |