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

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

Issue 1791543005: InPrePaint document state and PrePaintTreeWalk class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2982c671cf98213f0b8bb1e64c16475f204f8e6d..e2cfc0f2a530d1e8cee30fe2a6edf601e9e8e083 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
@@ -219,17 +219,17 @@ bool DocumentLifecycle::canAdvanceTo(LifecycleState nextState) const
if (nextState == InCompositingUpdate)
return true;
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
- if (nextState == InUpdatePaintProperties)
+ if (nextState == InPrePaint)
return true;
} else if (nextState == InPaint) {
return true;
}
break;
- case InUpdatePaintProperties:
- if (nextState == UpdatePaintPropertiesClean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ case InPrePaint:
+ if (nextState == PrePaintClean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return true;
break;
- case UpdatePaintPropertiesClean:
+ case PrePaintClean:
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
break;
if (nextState == InPaint)
@@ -327,8 +327,8 @@ const char* DocumentLifecycle::stateAsDebugString(const LifecycleState state)
DEBUG_STRING_CASE(CompositingClean);
DEBUG_STRING_CASE(InPaintInvalidation);
DEBUG_STRING_CASE(PaintInvalidationClean);
- DEBUG_STRING_CASE(InUpdatePaintProperties);
- DEBUG_STRING_CASE(UpdatePaintPropertiesClean);
+ DEBUG_STRING_CASE(InPrePaint);
+ DEBUG_STRING_CASE(PrePaintClean);
DEBUG_STRING_CASE(InPaint);
DEBUG_STRING_CASE(PaintClean);
DEBUG_STRING_CASE(Stopping);
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentLifecycle.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698