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

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

Issue 672843002: Delay dispatching DOMContentLoaded event to next event loop. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: hmm Created 6 years, 2 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 | « no previous file | 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 e83c97aa18cec21599a2312bfab6a87810ad673f..0a8c1a842f9711950c31f12c9482c509d3fc6beb 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -976,6 +976,8 @@ public:
void incrementActiveParserCount() { ++m_activeParserCount; }
void decrementActiveParserCount();
+ bool hasFiredDOMContentLoadedEvent() const { return m_hasFiredDOMContentLoadedEvent; }
+
void setContextFeatures(ContextFeatures&);
ContextFeatures& contextFeatures() const { return *m_contextFeatures; }
@@ -1121,6 +1123,7 @@ private:
void updateFocusAppearanceTimerFired(Timer<Document>*);
void updateBaseURL();
+ void dispatchDOMContentLoadedTimerFired(Timer<Document>*);
void executeScriptsWaitingForResourcesTimerFired(Timer<Document>*);
void loadEventDelayTimerFired(Timer<Document>*);
@@ -1202,6 +1205,8 @@ private:
CompatibilityMode m_compatibilityMode;
bool m_compatibilityModeLocked; // This is cheaper than making setCompatibilityMode virtual.
+ bool m_hasFiredDOMContentLoadedEvent;
+ Timer<Document> m_dispatchDOMContentLoadedTimer;
Timer<Document> m_executeScriptsWaitingForResourcesTimer;
bool m_hasAutofocused;
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698