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

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

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: 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/ExecutionContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
index a8cf51e87efcf5fc631dcaef95f3aba26f2ddf7c..dc9c24da8fc39e1faa91a2ecbd63095d71e3c9aa 100644
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
@@ -55,16 +55,16 @@ ExecutionContext::ExecutionContext()
ExecutionContext::~ExecutionContext() {}
-void ExecutionContext::suspendActiveDOMObjects() {
+void ExecutionContext::suspendSuspendableObjects() {
DCHECK(!m_activeDOMObjectsAreSuspended);
- notifySuspendingActiveDOMObjects();
+ notifySuspendingSuspendableObjects();
m_activeDOMObjectsAreSuspended = true;
}
-void ExecutionContext::resumeActiveDOMObjects() {
+void ExecutionContext::resumeSuspendableObjects() {
DCHECK(m_activeDOMObjectsAreSuspended);
m_activeDOMObjectsAreSuspended = false;
- notifyResumingActiveDOMObjects();
+ notifyResumingSuspendableObjects();
}
void ExecutionContext::notifyContextDestroyed() {
@@ -73,20 +73,21 @@ void ExecutionContext::notifyContextDestroyed() {
}
void ExecutionContext::suspendScheduledTasks() {
- suspendActiveDOMObjects();
+ suspendSuspendableObjects();
tasksWereSuspended();
}
void ExecutionContext::resumeScheduledTasks() {
- resumeActiveDOMObjects();
+ resumeSuspendableObjects();
tasksWereResumed();
}
-void ExecutionContext::suspendActiveDOMObjectIfNeeded(ActiveDOMObject* object) {
+void ExecutionContext::suspendSuspendableObjectIfNeeded(
+ SuspendableObject* object) {
#if DCHECK_IS_ON()
DCHECK(contains(object));
#endif
- // Ensure all ActiveDOMObjects are suspended also newly created ones.
+ // Ensure all SuspendableObjects are suspended also newly created ones.
if (m_activeDOMObjectsAreSuspended)
object->suspend();
}

Powered by Google App Engine
This is Rietveld 408576698