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

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

Issue 2524273002: Move ExecutionContext's task suspension from FrameLoader to Page
Patch Set: Created 4 years, 1 month 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 | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f2980543a0e61eae1cc1b4642b0b7e39f7bd0076..2d745fd9af6ef9b71b76e249de75185abcab6564 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5715,6 +5715,7 @@ void Document::tasksWereSuspended() {
m_parser->suspendScheduledTasks();
if (m_scriptedAnimationController)
m_scriptedAnimationController->suspend();
+ fetcher()->setDefersLoading(true);
}
void Document::tasksWereResumed() {
@@ -5724,6 +5725,7 @@ void Document::tasksWereResumed() {
m_parser->resumeScheduledTasks();
if (m_scriptedAnimationController)
m_scriptedAnimationController->resume();
+ fetcher()->setDefersLoading(false);
MutationObserver::resumeSuspendedObservers();
if (m_domWindow)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698