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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.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/V8IntersectionObserverCallback.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp b/third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp
index 2eecc86e1944d4e30c278edeca5dad2505a42ab3..42f8af7a3c61194dd7cb3eae0f64eb79a9b3a460 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp
@@ -29,7 +29,8 @@ V8IntersectionObserverCallback::~V8IntersectionObserverCallback() {}
void V8IntersectionObserverCallback::HandleEvent(
const HeapVector<Member<IntersectionObserverEntry>>& entries,
IntersectionObserver& observer) {
- ExecutionContext* execution_context = script_state_->GetExecutionContext();
+ ExecutionContext* execution_context =
+ ExecutionContext::From(script_state_.Get());
if (!execution_context || execution_context->IsContextSuspended() ||
execution_context->IsContextDestroyed())
return;
@@ -58,7 +59,7 @@ void V8IntersectionObserverCallback::HandleEvent(
v8::TryCatch exception_catcher(script_state_->GetIsolate());
exception_catcher.SetVerbose(true);
V8ScriptRunner::CallFunction(callback_.NewLocal(script_state_->GetIsolate()),
- script_state_->GetExecutionContext(),
+ ExecutionContext::From(script_state_.Get()),
this_object, 2, argv,
script_state_->GetIsolate());
}

Powered by Google App Engine
This is Rietveld 408576698