Index: Source/core/layout/LayoutView.cpp |
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp |
index 90c5864e67479b5034e794b375c04f323778e348..2d330a5150eb487b6a1cd0518532db3ae207e001 100644 |
--- a/Source/core/layout/LayoutView.cpp |
+++ b/Source/core/layout/LayoutView.cpp |
@@ -375,11 +375,11 @@ void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidatio |
// short-circuit on full-paint invalidation. |
LayoutRect dirtyRect = viewRect(); |
if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) { |
- const LayoutBoxModelObject* paintInvalidationContainer = &paintInvalidationState.paintInvalidationContainer(); |
- DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(this, paintInvalidationContainer, dirtyRect, &paintInvalidationState); |
+ const LayoutBoxModelObject& paintInvalidationContainer = paintInvalidationState.paintInvalidationContainer(); |
+ DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(this, &paintInvalidationContainer, dirtyRect, &paintInvalidationState); |
invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, PaintInvalidationFull); |
if (RuntimeEnabledFeatures::slimmingPaintEnabled()) |
- invalidateDisplayItemClients(*paintInvalidationContainer); |
+ invalidateDisplayItemClients(paintInvalidationContainer); |
} |
LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState); |
} |