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

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

Issue 2334113002: Let slimmingPaintInvalidation plumbing work for spv1 (Closed)
Patch Set: - Created 4 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 49455873f68fb6a182ee30e318a75d45e4ca2302..554b7c7ccaa489c124177bbfdaef55fa25a3067c 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
@@ -232,11 +232,11 @@ bool DocumentLifecycle::canAdvanceTo(LifecycleState nextState) const
return true;
break;
case InPrePaint:
- if (nextState == PrePaintClean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ if (nextState == PrePaintClean && RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
return true;
break;
case PrePaintClean:
- if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ if (!RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled())
break;
if (nextState == InPaint)
return true;
@@ -281,6 +281,7 @@ bool DocumentLifecycle::canRewindTo(LifecycleState nextState) const
|| m_state == LayoutClean
|| m_state == CompositingClean
|| m_state == PaintInvalidationClean
+ || m_state == PrePaintClean
|| m_state == PaintClean;
}

Powered by Google App Engine
This is Rietveld 408576698