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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp » ('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.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
index b744be68a65bcca8d90c00c4d72e2ee6d54a0ae0..e7c0949ad6d1d1a8411dfc3ca4cdbbc1e8e6caf6 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
@@ -67,12 +67,12 @@ public:
InPaintInvalidation,
PaintInvalidationClean,
- // When RuntimeEnabledFeatures::slimmingPaintV2Enabled.
- InUpdatePaintProperties,
- UpdatePaintPropertiesClean,
+ // In InPrePaint step, any data needed by painting are prepared.
+ // When RuntimeEnabledFeatures::slimmingPaintV2Enabled, paint property trees are built.
+ // Otherwise these steps are not applicable.
+ InPrePaint,
+ PrePaintClean,
- // When RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled
- // (implied by slimmingPaintV2Enabled).
InPaint,
PaintClean,
@@ -197,7 +197,7 @@ inline bool DocumentLifecycle::stateAllowsTreeMutations() const
return m_state != InStyleRecalc
&& m_state != InPerformLayout
&& m_state != InCompositingUpdate
- && m_state != InUpdatePaintProperties
+ && m_state != InPrePaint
&& m_state != InPaint;
}
@@ -221,7 +221,7 @@ inline bool DocumentLifecycle::stateAllowsDetach() const
|| m_state == LayoutClean
|| m_state == CompositingClean
|| m_state == PaintInvalidationClean
- || m_state == UpdatePaintPropertiesClean
+ || m_state == PrePaintClean
|| m_state == PaintClean
|| m_state == Stopping;
}
@@ -231,7 +231,7 @@ inline bool DocumentLifecycle::stateAllowsLayoutInvalidation() const
return m_state != InPerformLayout
&& m_state != InCompositingUpdate
&& m_state != InPaintInvalidation
- && m_state != InUpdatePaintProperties
+ && m_state != InPrePaint
&& m_state != InPaint;
}
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698