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

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

Issue 232013002: Rewind the DocumentLifecycle when dirtying state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Ojan's comments Created 6 years, 8 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 | « Source/core/dom/Document.cpp ('k') | Source/core/dom/DocumentLifecycle.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 9938251e85805961df6c246b0f4e5af2664ed5ce..dcc6a6064614905b5be6f3eb3fe53c575bfee212 100644
--- a/Source/core/dom/DocumentLifecycle.h
+++ b/Source/core/dom/DocumentLifecycle.h
@@ -44,7 +44,8 @@ public:
// When the document is active, it traverses these states.
- StyleRecalcPending,
+ VisualUpdatePending,
+
InStyleRecalc,
StyleClean,
@@ -100,11 +101,12 @@ public:
bool stateAllowsTreeMutations() const;
void advanceTo(State);
- void rewindTo(State);
+ void ensureStateAtMost(State);
private:
#if !ASSERT_DISABLED
bool canAdvanceTo(State) const;
+ bool canRewindTo(State) const;
#endif
State m_state;
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698