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

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

Issue 1909033003: Add FrameView::updateAllLifecyclePhasesExceptPaint and use it in a few cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 382a94d3ac83141f084f5618ab3f5a663b45c94b..efd0ecea0262ab79cf42eb6d800781855dff5ee2 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
@@ -219,7 +219,15 @@ bool DocumentLifecycle::canAdvanceTo(LifecycleState nextState) const
return true;
break;
case UpdatePaintPropertiesClean:
- if (nextState == InPaint && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ break;
+ if (nextState == InPaint)
+ return true;
+ if (nextState == InStyleRecalc)
+ return true;
+ if (nextState == InPreLayout)
+ return true;
+ if (nextState == InCompositingUpdate)
return true;
break;
case InPaint:
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698