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

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: 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
Index: Source/core/dom/DocumentLifecycle.h
diff --git a/Source/core/dom/DocumentLifecycle.h b/Source/core/dom/DocumentLifecycle.h
index 9938251e85805961df6c246b0f4e5af2664ed5ce..994ecc5f79d2a2b7384eace9ad9a265c93deab24 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,
+ UpdatePending,
+
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;

Powered by Google App Engine
This is Rietveld 408576698