Index: Source/core/layout/LayoutObjectChildList.cpp |
diff --git a/Source/core/layout/LayoutObjectChildList.cpp b/Source/core/layout/LayoutObjectChildList.cpp |
index 5e6c2ea0385a15aab077e3793f10d61afd2e40cd..85b489aa258024e64543c1a6c188b6c4976bce94 100644 |
--- a/Source/core/layout/LayoutObjectChildList.cpp |
+++ b/Source/core/layout/LayoutObjectChildList.cpp |
@@ -195,10 +195,10 @@ void LayoutObjectChildList::invalidatePaintOnRemoval(const LayoutObject& oldChil |
DisableCompositingQueryAsserts disabler; |
// FIXME: We should not allow paint invalidation out of paint invalidation state. crbug.com/457415 |
DisablePaintInvalidationStateAsserts paintInvalidationAssertDisabler; |
- const LayoutBoxModelObject* paintInvalidationContainer = oldChild.containerForPaintInvalidation(); |
+ const LayoutBoxModelObject& paintInvalidationContainer = *oldChild.containerForPaintInvalidation(); |
oldChild.invalidatePaintUsingContainer(paintInvalidationContainer, oldChild.previousPaintInvalidationRect(), PaintInvalidationLayoutObjectRemoval); |
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) |
- oldChild.invalidateDisplayItemClients(*paintInvalidationContainer); |
+ oldChild.invalidateDisplayItemClients(paintInvalidationContainer); |
} |
} // namespace blink |