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

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

Issue 2527143002: Suspend frame schedulers on a page suspension (Closed)
Patch Set: mod a comment Created 4 years 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 a57215a72eea90757a14e3076e16739b997ac7c1..3d6d0a856b375b79b0b6d9522ad9aae8ae946e84 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5765,18 +5765,6 @@ void Document::tasksWereResumed() {
DOMWindowPerformance::performance(*m_domWindow)->resumeSuspendedObservers();
}
-// FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension()
-// should be moved to LocalDOMWindow once it inherits ExecutionContext
-void Document::suspendScheduledTasks() {
- ExecutionContext::suspendScheduledTasks();
- m_taskRunner->suspend();
-}
-
-void Document::resumeScheduledTasks() {
- ExecutionContext::resumeScheduledTasks();
- m_taskRunner->resume();
-}
-
bool Document::tasksNeedSuspension() {
Page* page = this->page();
return page && page->suspended();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698