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

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, 9 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 2580dd18f16babc483685e87b3fb03ab8d560c37..adcc7352f83e76ef7970ee4ae75fef3ffaa24239 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
@@ -68,11 +68,9 @@ public:
PaintInvalidationClean,
// When RuntimeEnabledFeatures::slimmingPaintV2Enabled.
- InUpdatePaintProperties,
- UpdatePaintPropertiesClean,
+ InPrePaintTreeWalk,
pdr. 2016/03/12 04:04:24 Nit: Can you update the comment in LayoutObject.h
jbroman 2016/03/14 15:05:15 It becomes less obvious what this step is, now tha
Xianzhu 2016/03/14 18:56:04 Changed the state name "InPrePaintTreeWalk" to "In
+ PrePaintTreeWalkClean,
- // When RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled
- // (implied by slimmingPaintV2Enabled).
InPaint,
PaintClean,
@@ -184,7 +182,7 @@ inline bool DocumentLifecycle::stateAllowsTreeMutations() const
return m_state != InStyleRecalc
&& m_state != InPerformLayout
&& m_state != InCompositingUpdate
- && m_state != InUpdatePaintProperties
+ && m_state != InPrePaintTreeWalk
&& m_state != InPaint;
}
@@ -208,7 +206,7 @@ inline bool DocumentLifecycle::stateAllowsDetach() const
|| m_state == LayoutClean
|| m_state == CompositingClean
|| m_state == PaintInvalidationClean
- || m_state == UpdatePaintPropertiesClean
+ || m_state == PrePaintTreeWalkClean
|| m_state == PaintClean
|| m_state == Stopping;
}
@@ -218,7 +216,7 @@ inline bool DocumentLifecycle::stateAllowsLayoutInvalidation() const
return m_state != InPerformLayout
&& m_state != InCompositingUpdate
&& m_state != InPaintInvalidation
- && m_state != InUpdatePaintProperties
+ && m_state != InPrePaintTreeWalk
&& m_state != InPaint;
}

Powered by Google App Engine
This is Rietveld 408576698