Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 67a44ea7569a54490a7d2a1c5e0c34ab9663fd29..2d5caae27019defe3313f6525d3d6dcfe06b792d 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -2475,6 +2475,14 @@ void FrameView::updateLifecyclePhasesInternal(LifeCycleUpdateOption phases) |
|| (RuntimeEnabledFeatures::slimmingPaintV2Enabled() && lifecycle().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean)); |
} |
} |
+ |
+#ifndef NDEBUG |
+ // TODO(jchaffraix): We will want to clear the clip rects in release too |
+ // to reduce our long-term memory consumption. However this requires us |
+ // to migrate all of the clip rects to the state machine and evaluate |
+ // the performance impacts of this. |
+ layoutView()->layer()->clipper().clearClipRectsIncludingDescendants(AbsoluteClipRects); |
+#endif |
} |
void FrameView::paintForSlimmingPaintV2() |