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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.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/V8NodeFilterCondition.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
index 470481807aa8b2e088ca2c6b2e2f45bf5c902a84..b4669d8ca6ea2d2373f3cc7aac998e199587d52e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
@@ -34,6 +34,7 @@
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/V8Node.h"
#include "bindings/core/v8/V8PrivateProperty.h"
+#include "core/dom/ExecutionContext.h"
#include "core/dom/Node.h"
#include "core/dom/NodeFilter.h"
#include "core/frame/UseCounter.h"
@@ -112,7 +113,7 @@ unsigned V8NodeFilterCondition::AcceptNode(
v8::Local<v8::Value> result;
v8::Local<v8::Value> args[] = {node_wrapper};
if (!V8ScriptRunner::CallFunction(callback,
- script_state_->GetExecutionContext(),
+ ExecutionContext::From(script_state_.Get()),
receiver, 1, args, isolate)
.ToLocal(&result)) {
exception_state.RethrowV8Exception(exception_catcher.Exception());

Powered by Google App Engine
This is Rietveld 408576698