Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Unified Diff: Source/core/frame/FrameView.cpp

Issue 1316173002: Move AbsoluteClipRects to the state machine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/layout/ClipRectsCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | Source/core/layout/ClipRectsCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698