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

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

Issue 1297943005: Allow InStyleRecalc and InPreLayout from CompositingForSlimmingPaintV2Clean (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 | no next file » | 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 6490f0a8269f6ceb262ff8e0fbac86f8d30fe1ba..df8a50ab29080719d428eb1fcfcc92ca7be4119c 100644
--- a/Source/core/dom/DocumentLifecycle.cpp
+++ b/Source/core/dom/DocumentLifecycle.cpp
@@ -213,6 +213,10 @@ bool DocumentLifecycle::canAdvanceTo(State nextState) const
case CompositingForSlimmingPaintV2Clean:
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return false;
+ if (nextState == InStyleRecalc)
+ return true;
+ if (nextState == InPreLayout)
+ return true;
if (nextState == InCompositingUpdate)
return true;
if (nextState == CompositingForSlimmingPaintV2Clean)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698