| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index ae3818d3c8d36c02f6bc7066a16ebf685155cf5d..deb7bc4f3fcd47d2855635e8db9593088c2331f2 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -3744,10 +3744,12 @@ void FrameView::SetTracksPaintInvalidations(bool track_paint_invalidations) {
|
| ? new Vector<ObjectPaintInvalidation>
|
| : nullptr);
|
| if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
|
| + if (!paint_controller_)
|
| + paint_controller_ = PaintController::Create();
|
| paint_controller_->SetTracksRasterInvalidations(
|
| track_paint_invalidations);
|
| - paint_artifact_compositor_->SetTracksRasterInvalidations(
|
| - track_paint_invalidations);
|
| + if (paint_artifact_compositor_)
|
| + paint_artifact_compositor_->ResetTrackedRasterInvalidations();
|
| } else {
|
| layout_view.Compositor()->SetTracksRasterInvalidations(
|
| track_paint_invalidations);
|
|
|