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

Unified Diff: third_party/WebKit/Source/core/dom/ExecutionContext.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/ExecutionContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
index 4d59b66036b2f3d443a5c1e3420299281b08144b..1ece34d199f337a25056e8348b3d2121ccf9c0ec 100644
--- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
+++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
@@ -48,7 +48,7 @@ namespace blink {
ExecutionContext::ExecutionContext()
: m_circularSequentialID(0),
m_inDispatchErrorEvent(false),
- m_activeDOMObjectsAreSuspended(false),
+ m_isContextSuspended(false),
m_isContextDestroyed(false),
m_windowInteractionTokens(0),
m_referrerPolicy(ReferrerPolicyDefault) {}
@@ -56,14 +56,14 @@ ExecutionContext::ExecutionContext()
ExecutionContext::~ExecutionContext() {}
void ExecutionContext::suspendSuspendableObjects() {
- DCHECK(!m_activeDOMObjectsAreSuspended);
+ DCHECK(!m_isContextSuspended);
notifySuspendingSuspendableObjects();
- m_activeDOMObjectsAreSuspended = true;
+ m_isContextSuspended = true;
}
void ExecutionContext::resumeSuspendableObjects() {
- DCHECK(m_activeDOMObjectsAreSuspended);
- m_activeDOMObjectsAreSuspended = false;
+ DCHECK(m_isContextSuspended);
+ m_isContextSuspended = false;
notifyResumingSuspendableObjects();
}
@@ -88,7 +88,7 @@ void ExecutionContext::suspendSuspendableObjectIfNeeded(
DCHECK(contains(object));
#endif
// Ensure all SuspendableObjects are suspended also newly created ones.
- if (m_activeDOMObjectsAreSuspended)
+ if (m_isContextSuspended)
object->suspend();
}

Powered by Google App Engine
This is Rietveld 408576698