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 d911f4fa4f11bb219a2cb82a35e6563223e1c49f..56819d93380396b77b142fa208a4e252b45f3488 100644 |
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h |
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h |
@@ -67,6 +67,10 @@ public: |
InPaintInvalidation, |
PaintInvalidationClean, |
+ // When RuntimeEnabledFeatures::slimmingPaintV2Enabled. |
+ InCalcPaintProps, |
+ CalcPaintPropsClean, |
+ |
// When RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled |
// (implied by slimmingPaintV2Enabled). |
InPaint, |
@@ -170,6 +174,7 @@ inline bool DocumentLifecycle::stateAllowsTreeMutations() const |
return m_state != InStyleRecalc |
&& m_state != InPerformLayout |
&& m_state != InCompositingUpdate |
+ && m_state != InCalcPaintProps |
&& m_state != InPaint |
&& m_state != InCompositingForSlimmingPaintV2; |
} |
@@ -194,6 +199,7 @@ inline bool DocumentLifecycle::stateAllowsDetach() const |
|| m_state == LayoutClean |
|| m_state == CompositingClean |
|| m_state == PaintInvalidationClean |
+ || m_state == CalcPaintPropsClean |
|| m_state == PaintClean |
|| m_state == CompositingForSlimmingPaintV2Clean |
|| m_state == Stopping; |
@@ -204,6 +210,7 @@ inline bool DocumentLifecycle::stateAllowsLayoutInvalidation() const |
return m_state != InPerformLayout |
&& m_state != InCompositingUpdate |
&& m_state != InPaintInvalidation |
+ && m_state != InCalcPaintProps |
&& m_state != InPaint |
&& m_state != InCompositingForSlimmingPaintV2; |
} |