Index: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp |
index 30fa530c8005048c80e6e64aaf9c25d24272b696..f2c1a2b89b10deb2535cb57df067a09a5f514031 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp |
@@ -41,6 +41,7 @@ |
#include "bindings/core/v8/V8PrivateProperty.h" |
#include "bindings/core/v8/V8ScriptRunner.h" |
#include "core/dom/Document.h" |
+#include "core/dom/ExecutionContext.h" |
#include "core/dom/Node.h" |
#include "core/events/ErrorEvent.h" |
#include "core/frame/LocalFrame.h" |
@@ -88,7 +89,7 @@ v8::Local<v8::Value> V8LazyEventListener::CallListenerFunction( |
Event* event) { |
ASSERT(!js_event.IsEmpty()); |
v8::Local<v8::Object> listener_object = |
- GetListenerObject(script_state->GetExecutionContext()); |
+ GetListenerObject(ExecutionContext::From(script_state)); |
if (listener_object.IsEmpty()) |
return v8::Local<v8::Value>(); |
@@ -97,16 +98,16 @@ v8::Local<v8::Value> V8LazyEventListener::CallListenerFunction( |
if (handler_function.IsEmpty() || receiver.IsEmpty()) |
return v8::Local<v8::Value>(); |
- if (!script_state->GetExecutionContext()->IsDocument()) |
+ if (!ExecutionContext::From(script_state)->IsDocument()) |
return v8::Local<v8::Value>(); |
LocalFrame* frame = |
- ToDocument(script_state->GetExecutionContext())->GetFrame(); |
+ ToDocument(ExecutionContext::From(script_state))->GetFrame(); |
if (!frame) |
return v8::Local<v8::Value>(); |
- if (!script_state->GetExecutionContext()->CanExecuteScripts( |
- kAboutToExecuteScript)) |
+ if (!ExecutionContext::From(script_state) |
+ ->CanExecuteScripts(kAboutToExecuteScript)) |
return v8::Local<v8::Value>(); |
v8::Local<v8::Value> parameters[1] = {js_event}; |