Index: Source/core/layout/LayoutBlock.cpp |
diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp |
index fc625dabc3bb795c86c022451ac44cb97e7b89b4..431f7599831f5c52c161c32cf917fb835a981be1 100644 |
--- a/Source/core/layout/LayoutBlock.cpp |
+++ b/Source/core/layout/LayoutBlock.cpp |
@@ -287,7 +287,7 @@ void LayoutBlock::styleWillChange(StyleDifference diff, const ComputedStyle& new |
} else if (!oldStyleIsContainer && (newStyle.position() != StaticPosition || newHasTransformRelatedProperty)) { |
// Remove our absolutely positioned descendants from their current containing block. |
// They will be inserted into our positioned objects list during layout. |
- if (LayoutBlock* cb = containingBlock()) |
+ if (LayoutBlock* cb = containingBlockForAbsolutePosition()) |
cb->removePositionedObjects(this, NewContainingBlock); |
} |
} |