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

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

Issue 1391753005: (WIP) Invalidation during painting (for synchronized painting) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
index 5e9e11c7bdf9c8dbfd5f116d04963ba18d66f48c..66f2602c1992da50dc77c45ffa511c1a340c4d51 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
@@ -197,24 +197,28 @@ bool DocumentLifecycle::canAdvanceTo(LifecycleState nextState) const
return true;
if (nextState == InCompositingUpdate)
return true;
- if (nextState == InPaintInvalidation)
+ if (nextState == InPaintInvalidation && !RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return true;
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ if (nextState == InUpdatePaintProperties)
+ return true;
+ } else if (nextState == InPaint) {
+ return true;
+ }
break;
case InPaintInvalidation:
+ ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
return nextState == PaintInvalidationClean;
case PaintInvalidationClean:
+ ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
if (nextState == InStyleRecalc)
return true;
if (nextState == InPreLayout)
return true;
if (nextState == InCompositingUpdate)
return true;
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
- if (nextState == InUpdatePaintProperties)
- return true;
- } else if (nextState == InPaint) {
+ if (nextState == InPaint)
return true;
- }
break;
case InUpdatePaintProperties:
if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())

Powered by Google App Engine
This is Rietveld 408576698