Index: Source/core/layout/LayoutObject.cpp |
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp |
index 99aa447fc57f3e52a9d4b00e267a3f877b6f4cf4..d87b3b1439f0848fc6674066af7e9a13f1ff2311 100644 |
--- a/Source/core/layout/LayoutObject.cpp |
+++ b/Source/core/layout/LayoutObject.cpp |
@@ -1372,7 +1372,7 @@ PaintInvalidationReason LayoutObject::invalidatePaintIfNeeded(PaintInvalidationS |
// mutation, but incurs no pixel difference (i.e. bounds stay the same) so no rect-based |
// invalidation is issued. See crbug.com/508383 and crbug.com/515977. |
// This is a workaround to force display items to update paint offset. |
- if (paintInvalidationState.ancestorHadPaintInvalidationForLocationChange()) |
+ if (paintInvalidationState.forcedSubtreeInvalidationWithinContainer()) |
invalidateDisplayItemClients(paintInvalidationContainer); |
return invalidationReason; |
@@ -3186,7 +3186,7 @@ void LayoutObject::clearPaintInvalidationState(const PaintInvalidationState& pai |
{ |
// paintInvalidationStateIsDirty should be kept in sync with the |
// booleans that are cleared below. |
- ASSERT(paintInvalidationState.ancestorHadPaintInvalidationForLocationChange() || paintInvalidationStateIsDirty()); |
+ ASSERT(paintInvalidationState.forcedSubtreeInvalidationWithinContainer() || paintInvalidationStateIsDirty()); |
clearShouldDoFullPaintInvalidation(); |
m_bitfields.setChildShouldCheckForPaintInvalidation(false); |
m_bitfields.setNeededLayoutBecauseOfChildren(false); |