Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 64569c78984db8e5fa00d1806b104a7616b113f3..050ef1c21cd0a0eee2230fa634e6bd91d9862624 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -3839,7 +3839,7 @@ void RenderLayer::styleChanged(StyleDifference diff, const RenderStyle* oldStyle |
m_scrollableArea->updateAfterStyleChange(oldStyle); |
if (!oldStyle || oldStyle->visibility() != renderer()->style()->visibility()) { |
- ASSERT(!oldStyle || diff >= StyleDifferenceRepaint); |
+ ASSERT(!oldStyle || diff.needsRepaint()); |
compositor()->setNeedsUpdateCompositingRequirementsState(); |
} |
@@ -3848,12 +3848,12 @@ void RenderLayer::styleChanged(StyleDifference diff, const RenderStyle* oldStyle |
updateSelfPaintingLayer(); |
if (!oldStyle || renderer()->style()->position() != oldStyle->position()) { |
- ASSERT(!oldStyle || diff >= StyleDifferenceLayout); |
+ ASSERT(!oldStyle || diff.needsFullLayout()); |
updateOutOfFlowPositioned(oldStyle); |
} |
if (!oldStyle || !renderer()->style()->reflectionDataEquivalent(oldStyle)) { |
- ASSERT(!oldStyle || diff >= StyleDifferenceLayout); |
+ ASSERT(!oldStyle || diff.needsFullLayout()); |
updateReflectionInfo(oldStyle); |
} |