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

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

Issue 984983002: Do not fire didStartLoading and didStopLoading events twice. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change new method name Created 5 years, 9 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/loader/FrameLoader.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 ff8de6407bb41b0f7bc41229f1799f4e54f9e066..4c162eaab4def1948774fa053393f48dac487904 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -911,6 +911,7 @@ public:
bool loadEventFinished() const { return m_loadEventProgress >= LoadEventCompleted; }
bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgress; }
bool processingBeforeUnload() const { return m_loadEventProgress == BeforeUnloadEventInProgress; }
+ bool isLoadEventCompleted() const { return m_loadEventProgress == LoadEventCompleted; }
void suppressLoadEvent();
void setContainsPlugins() { m_containsPlugins = true; }
« no previous file with comments | « no previous file | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698