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.cpp

Issue 806183005: Remove FrameLoader's checkLoadComplete and checkLoadCompleteForThisFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 819235fb787ac547e42460dcdb752c693cca1799..f9982e9fafc3fed1821a6bac5667aeabf85389a8 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5032,6 +5032,12 @@ Element* Document::pointerLockElement() const
return 0;
}
+void Document::suppressLoadEvent()
+{
+ if (!loadEventFinished())
+ m_loadEventProgress = LoadEventCompleted;
+}
+
void Document::decrementLoadEventDelayCount()
{
ASSERT(m_loadEventDelayCount);
@@ -5211,14 +5217,6 @@ bool Document::hasActiveParser()
return m_activeParserCount || (m_parser && m_parser->processingData());
}
-void Document::decrementActiveParserCount()
-{
- --m_activeParserCount;
- if (!frame())
- return;
- frame()->loader().checkLoadComplete();
-}
-
void Document::setContextFeatures(ContextFeatures& features)
{
m_contextFeatures = PassRefPtrWillBeRawPtr<ContextFeatures>(features);

Powered by Google App Engine
This is Rietveld 408576698