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

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

Issue 1376143002: Add a document phase for calculating paint properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 12a710f80ef25f92954903502582d25b2493a29e..3968daa4b851d2ff034cdad6083386f144986b7b 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
@@ -195,7 +195,20 @@ bool DocumentLifecycle::canAdvanceTo(State nextState) const
return true;
if (nextState == InCompositingUpdate)
return true;
- if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled())
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ if (nextState == InCalcPaintProps)
+ return true;
+ } else {
+ if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled())
chrishtr 2015/09/30 21:36:33 Why this part?
pdr. 2015/09/30 21:53:14 slimmingPaintSynchronizedPaintingEnabled will soon
+ return true;
+ }
+ break;
+ case InCalcPaintProps:
+ if (nextState == CalcPaintPropsClean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return true;
+ break;
+ case CalcPaintPropsClean:
+ if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return true;
break;
case InPaint:
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentLifecycle.h ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698