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

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

Issue 2587913002: Rename activeDOMObjectsAreSuspended to isContextSuspended (Closed)
Patch Set: temp 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/ContextLifecycleNotifier.cpp
diff --git a/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp b/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
index 22edb47cb371dd01f2463266bda366604208da29..e9a4222c27c73dbfdf77cde3b6d19bcd468a1f3f 100644
--- a/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
+++ b/third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.cpp
@@ -38,13 +38,13 @@ void ContextLifecycleNotifier::notifyResumingSuspendableObjects() {
if (observer->observerType() !=
ContextLifecycleObserver::SuspendableObjectType)
continue;
- SuspendableObject* activeDOMObject =
+ SuspendableObject* suspendableObject =
static_cast<SuspendableObject*>(observer);
#if DCHECK_IS_ON()
- DCHECK_EQ(activeDOMObject->getExecutionContext(), context());
- DCHECK(activeDOMObject->suspendIfNeededCalled());
+ DCHECK_EQ(suspendableObject->getExecutionContext(), context());
+ DCHECK(suspendableObject->suspendIfNeededCalled());
#endif
- activeDOMObject->resume();
+ suspendableObject->resume();
}
}
@@ -54,26 +54,26 @@ void ContextLifecycleNotifier::notifySuspendingSuspendableObjects() {
if (observer->observerType() !=
ContextLifecycleObserver::SuspendableObjectType)
continue;
- SuspendableObject* activeDOMObject =
+ SuspendableObject* suspendableObject =
static_cast<SuspendableObject*>(observer);
#if DCHECK_IS_ON()
- DCHECK_EQ(activeDOMObject->getExecutionContext(), context());
- DCHECK(activeDOMObject->suspendIfNeededCalled());
+ DCHECK_EQ(suspendableObject->getExecutionContext(), context());
+ DCHECK(suspendableObject->suspendIfNeededCalled());
#endif
- activeDOMObject->suspend();
+ suspendableObject->suspend();
}
}
-unsigned ContextLifecycleNotifier::activeDOMObjectCount() const {
+unsigned ContextLifecycleNotifier::suspendableObjectCount() const {
DCHECK(!isIteratingOverObservers());
- unsigned activeDOMObjects = 0;
+ unsigned suspendableObjects = 0;
for (ContextLifecycleObserver* observer : m_observers) {
if (observer->observerType() !=
ContextLifecycleObserver::SuspendableObjectType)
continue;
- activeDOMObjects++;
+ suspendableObjects++;
}
- return activeDOMObjects;
+ return suspendableObjects;
}
#if DCHECK_IS_ON()
@@ -83,9 +83,9 @@ bool ContextLifecycleNotifier::contains(SuspendableObject* object) const {
if (observer->observerType() !=
ContextLifecycleObserver::SuspendableObjectType)
continue;
- SuspendableObject* activeDOMObject =
+ SuspendableObject* suspendableObject =
static_cast<SuspendableObject*>(observer);
- if (activeDOMObject == object)
+ if (suspendableObject == object)
return true;
}
return false;
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContextLifecycleNotifier.h ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698