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

Unified Diff: Source/core/dom/DocumentLifecycle.cpp

Issue 1315213002: (WIP) Paint invalidation for slimming paint v2 (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/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentLifecycle.cpp
diff --git a/Source/core/dom/DocumentLifecycle.cpp b/Source/core/dom/DocumentLifecycle.cpp
index df8a50ab29080719d428eb1fcfcc92ca7be4119c..9062aa8e29023450e293add96fc54306169ecd4c 100644
--- a/Source/core/dom/DocumentLifecycle.cpp
+++ b/Source/core/dom/DocumentLifecycle.cpp
@@ -183,12 +183,16 @@ bool DocumentLifecycle::canAdvanceTo(State nextState) const
return true;
if (nextState == InCompositingUpdate)
return true;
- if (nextState == InPaintInvalidation)
+ if (nextState == InPaintInvalidation && !RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return true;
+ if (nextState == InPaintForSlimmingPaintV2 && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return true;
break;
case InPaintInvalidation:
+ ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
return nextState == PaintInvalidationClean;
case PaintInvalidationClean:
+ ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
if (nextState == InStyleRecalc)
return true;
if (nextState == InPreLayout)
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698