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

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: 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
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 3e34262c3e6bb9fc806f4b41bf30300e00d43dc4..626d8bbbd0d6eb3133cf363313caa781a4c4309f 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;

Powered by Google App Engine
This is Rietveld 408576698