Index: Source/WebCore/rendering/RenderObject.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderObject.cpp (revision 109426) |
+++ Source/WebCore/rendering/RenderObject.cpp (working copy) |
@@ -650,8 +650,9 @@ |
if (!container && !object->isRenderView()) |
return; |
if (!last->isText() && (last->style()->position() == FixedPosition || last->style()->position() == AbsolutePosition)) { |
- bool willSkipRelativelyPositionedInlines = !object->isRenderBlock(); |
- while (object && !object->isRenderBlock()) // Skip relatively positioned inlines and get to the enclosing RenderBlock. |
+ bool willSkipRelativelyPositionedInlines = !object->isRenderBlock() || object->isAnonymousBlock(); |
+ // Skip relatively positioned inlines and anonymous blocks to get to the enclosing RenderBlock. |
+ while (object && (!object->isRenderBlock() || object->isAnonymousBlock())) |
object = object->container(); |
if (!object || object->m_posChildNeedsLayout) |
return; |