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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 8fef529d996e416d456b2efc891fcbca9a0a3156..9c9fb02e1ca932c7f2b8fbe3acb589048ddbb5a4 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2634,7 +2634,7 @@ void Document::close()
return;
}
- m_frame->loader().checkCompleted();
+ m_frame->loader().checkCompleted(7);
}
void Document::implicitClose()
@@ -5307,7 +5307,7 @@ bool Document::isDelayingLoadEvent()
void Document::loadEventDelayTimerFired(Timer<Document>*)
{
if (frame())
- frame()->loader().checkCompleted();
+ frame()->loader().checkCompleted(8);
}
void Document::loadPluginsSoon()

Powered by Google App Engine
This is Rietveld 408576698