Chromium Code Reviews| Index: Source/core/layout/LayoutBlock.cpp |
| diff --git a/Source/core/layout/LayoutBlock.cpp b/Source/core/layout/LayoutBlock.cpp |
| index 5cee8786dba8a9c20f46c54ec7b6042949bd0eff..decc0de55b1b813636003afd4207d94262c81a54 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 = containerForAbsolutePosition()) |
|
mstensho (USE GERRIT)
2015/06/30 19:47:17
How about doing this in styleDidChange() instead,
|
| cb->removePositionedObjects(this, NewContainingBlock); |
| } |
| } |