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

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

Issue 267053002: ASSERT on renderer lifecycle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentLifecycle.h
diff --git a/Source/core/dom/DocumentLifecycle.h b/Source/core/dom/DocumentLifecycle.h
index dcc6a6064614905b5be6f3eb3fe53c575bfee212..1869523f8879f3c5b0545b048d5c7ec2b548cea7 100644
--- a/Source/core/dom/DocumentLifecycle.h
+++ b/Source/core/dom/DocumentLifecycle.h
@@ -99,6 +99,7 @@ public:
State state() const { return m_state; }
bool stateAllowsTreeMutations() const;
+ bool stateAllowsRenderTreeMutations() const;
void advanceTo(State);
void ensureStateAtMost(State);
@@ -121,6 +122,11 @@ inline bool DocumentLifecycle::stateAllowsTreeMutations() const
&& m_state != InCompositingUpdate;
}
+inline bool DocumentLifecycle::stateAllowsRenderTreeMutations() const
+{
+ return m_state == InStyleRecalc;
+}
+
}
#endif
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698