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

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

Issue 1376143002: Add a document phase for calculating paint properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (remove GLB check, as was done in synchronizedPaint) Created 5 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.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
index fe20cc9e30527e4b505983631eba5fd9aeb7223d..fbb48c5fad6a69a0ab6eba7ed14fd08d31d1b49f 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,
esprehn 2015/10/01 09:00:08 We don't generally abbreviate in blink, this shoul
esprehn 2015/10/01 09:05:06 I guess we use Calc and Recalc in other parts of t
+
// 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;
}

Powered by Google App Engine
This is Rietveld 408576698