| 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();
|
| }
|
|
|
|
|