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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp

Issue 2552993002: Rename activeDOMObjectsAreStopped to isContextDestroyed (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/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp b/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
index 21cd0d9c22bd68dd44947c440f8390409e47ce07..9d053ddb7418123c015d5eb228489ea01afd66b4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8V0CustomElementLifecycleCallbacks.cpp
@@ -151,8 +151,7 @@ void V8V0CustomElementLifecycleCallbacks::created(Element* element) {
// FIXME: callbacks while paused should be queued up for execution to
// continue then be delivered in order rather than delivered immediately.
// Bug 329665 tracks similar behavior for other synchronous events.
- if (!getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
if (!m_scriptState->contextIsValid())
@@ -202,8 +201,7 @@ void V8V0CustomElementLifecycleCallbacks::attributeChanged(
// FIXME: callbacks while paused should be queued up for execution to
// continue then be delivered in order rather than delivered immediately.
// Bug 329665 tracks similar behavior for other synchronous events.
- if (!getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
if (!m_scriptState->contextIsValid())
@@ -238,8 +236,7 @@ void V8V0CustomElementLifecycleCallbacks::call(
// FIXME: callbacks while paused should be queued up for execution to
// continue then be delivered in order rather than delivered immediately.
// Bug 329665 tracks similar behavior for other synchronous events.
- if (!getExecutionContext() ||
- getExecutionContext()->activeDOMObjectsAreStopped())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
if (!m_scriptState->contextIsValid())

Powered by Google App Engine
This is Rietveld 408576698