Index: Source/core/rendering/RenderBlockFlow.cpp |
diff --git a/Source/core/rendering/RenderBlockFlow.cpp b/Source/core/rendering/RenderBlockFlow.cpp |
index 71402919df89d2d76ff5facd60709cd2ac36c799..fdb2e30d000eaf0f932bdbf18ec2a28c38430e9e 100644 |
--- a/Source/core/rendering/RenderBlockFlow.cpp |
+++ b/Source/core/rendering/RenderBlockFlow.cpp |
@@ -1814,7 +1814,7 @@ void RenderBlockFlow::styleWillChange(StyleDifference diff, const RenderStyle& n |
{ |
RenderStyle* oldStyle = style(); |
s_canPropagateFloatIntoSibling = oldStyle ? !isFloatingOrOutOfFlowPositioned() && !avoidsFloats() : false; |
- if (oldStyle && parent() && diff == StyleDifferenceLayout && oldStyle->position() != newStyle.position() |
+ if (oldStyle && parent() && diff.needsFullLayout() && oldStyle->position() != newStyle.position() |
&& containsFloats() && !isFloating() && !isOutOfFlowPositioned() && newStyle.hasOutOfFlowPosition()) |
markAllDescendantsWithFloatsForLayout(); |
@@ -1830,7 +1830,7 @@ void RenderBlockFlow::styleDidChange(StyleDifference diff, const RenderStyle* ol |
// then mark its descendants with floats for layout and clear all floats from its next |
// sibling blocks that exist in our floating objects list. See bug 56299 and 62875. |
bool canPropagateFloatIntoSibling = !isFloatingOrOutOfFlowPositioned() && !avoidsFloats(); |
- if (diff == StyleDifferenceLayout && s_canPropagateFloatIntoSibling && !canPropagateFloatIntoSibling && hasOverhangingFloats()) { |
+ if (diff.needsFullLayout() && s_canPropagateFloatIntoSibling && !canPropagateFloatIntoSibling && hasOverhangingFloats()) { |
RenderBlockFlow* parentBlockFlow = this; |
const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set(); |
FloatingObjectSetIterator end = floatingObjectSet.end(); |
@@ -1855,7 +1855,7 @@ void RenderBlockFlow::styleDidChange(StyleDifference diff, const RenderStyle* ol |
parentBlockFlow->markSiblingsWithFloatsForLayout(); |
} |
- if (diff == StyleDifferenceLayout || !oldStyle) |
+ if (diff.needsFullLayout() || !oldStyle) |
createOrDestroyMultiColumnFlowThreadIfNeeded(); |
} |