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

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

Issue 156413002: [WIP] Move layout states into the DocumentLifecycle state machine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: uber patch 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 11e886082f6113a2d330fb948b95ba5d2c0c0423..50738b36665a42183cf9908b8703a0c34b5a547c 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -606,9 +606,10 @@ public:
void setParsing(bool);
bool parsing() const { return m_bParsing; }
- int minimumLayoutDelay();
bool shouldScheduleLayout();
+ bool shouldScheduleStyleRecalc();
+
bool shouldParserYieldAgressivelyBeforeScriptExecution();
int elapsedTime() const;
@@ -997,7 +998,6 @@ public:
void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPendingStylesheet = true; }
void clearStyleResolver();
- bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle::InStyleRecalc; }
// Return a Locale for the default locale if the argument is null or empty.
Locale& getCachedLocale(const AtomicString& locale = nullAtom);
@@ -1026,8 +1026,10 @@ 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; }
+ bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle::InStyleRecalc; }
enum HttpRefreshType {
HttpRefreshFromHeader,
@@ -1238,7 +1240,6 @@ private:
LoadEventProgress m_loadEventProgress;
double m_startTime;
- bool m_overMinimumLayoutThreshold;
OwnPtr<ScriptRunner> m_scriptRunner;
« 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