Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index 988307e39943873e7b46fd9da4ccf07acff1f20d..c8a3f359e41ea58f55c8cc4f272d975c2f8e9123 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -241,6 +241,9 @@ void LayoutBox::styleDidChange(StyleDifference diff, const ComputedStyle* oldSty |
LayoutBoxModelObject::styleDidChange(diff, oldStyle); |
+ if (isFloatingOrOutOfFlowPositioned() && oldStyle && !oldStyle->isFloating() && !oldStyle->hasOutOfFlowPosition() && parent() && parent()->isLayoutBlockFlow()) |
+ toLayoutBlockFlow(parent())->childBecameFloatingOrOutOfFlow(this); |
+ |
const ComputedStyle& newStyle = styleRef(); |
if (needsLayout() && oldStyle) |
removeFromPercentHeightContainer(); |