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

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

Issue 146023008: Add layout states to DocumentLifecycle state machine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whitelist one more transition' Created 6 years, 10 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/core.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index b3024ae416b67fa73bcfbf6e131f309062f6b101..db507f1b0d5d1c6e6b55e951c117fae04c5ec438 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -1025,6 +1025,7 @@ public:
Frame* executingFrame();
DocumentLifecycleNotifier& lifecycleNotifier();
+ DocumentLifecycle& lifecycle() { return m_lifecycle; }
bool isActive() const { return m_lifecycle.isActive(); }
bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::Stopped; }
@@ -1138,6 +1139,7 @@ private:
// Returns true if Document::recalcStyle() needs to be run.
bool shouldCallRecalcStyleForDocument();
+ bool shouldScheduleStyleRecalc();
DocumentLifecycle m_lifecycle;
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698