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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8GCController.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/V8GCController.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
index 87d93525711c43f86222e5707988b4ec1ec0a64f..43a67b6a4f3c6ba79b5b3700d04f99291e01f479 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
@@ -184,7 +184,7 @@ class MajorGCWrapperVisitor : public v8::PersistentHandleVisitor {
// TODO(haraken): Implement correct lifetime using traceWrapper.
ExecutionContext* context =
toExecutionContext(wrapper->CreationContext());
- if (context && !context->activeDOMObjectsAreStopped()) {
+ if (context && !context->isContextDestroyed()) {
m_isolate->SetObjectGroupId(*value, liveRootId());
++m_domObjectsWithPendingActivity;
}
@@ -517,7 +517,7 @@ class PendingActivityVisitor : public v8::PersistentHandleVisitor {
ExecutionContext* context =
toExecutionContext(wrapper->CreationContext());
if (context == m_executionContext && context &&
- !context->activeDOMObjectsAreStopped())
+ !context->isContextDestroyed())
m_pendingActivityFound = true;
}
}

Powered by Google App Engine
This is Rietveld 408576698