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

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

Issue 2810743003: Move ScriptState::GetExecutionContext (Part 3) (Closed)
Patch Set: Rebase Created 3 years, 8 months 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/V8MutationCallback.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.cpp b/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.cpp
index d96facbcd0c70a6eefed8504a89e1b700607aae5..8b5ae6693535c8cce2233116fa6fa0e50a3d9500 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8MutationCallback.cpp
@@ -51,7 +51,8 @@ void V8MutationCallback::Call(
const HeapVector<Member<MutationRecord>>& mutations,
MutationObserver* observer) {
v8::Isolate* isolate = script_state_->GetIsolate();
- ExecutionContext* execution_context = script_state_->GetExecutionContext();
+ ExecutionContext* execution_context =
+ ExecutionContext::From(script_state_.Get());
if (!execution_context || execution_context->IsContextSuspended() ||
execution_context->IsContextDestroyed())
return;

Powered by Google App Engine
This is Rietveld 408576698