| Index: third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp
|
| index de04e24b9c9fea14d53ca2263921c57f60335572..8a6427a2f6b4ecb45f88de04aabd4485dbf11837 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp
|
| @@ -62,7 +62,7 @@ V8LazyEventListener* CreateAttributeEventListener(
|
|
|
| v8::Isolate* isolate = ToIsolate(&node->GetDocument());
|
| if (LocalFrame* frame = node->GetDocument().GetFrame()) {
|
| - ScriptController& script_controller = frame->Script();
|
| + ScriptController& script_controller = frame->GetScriptController();
|
| if (!node->GetDocument().CanExecuteScripts(kAboutToExecuteScript))
|
| return nullptr;
|
| position = script_controller.EventHandlerPosition();
|
| @@ -88,7 +88,7 @@ V8LazyEventListener* CreateAttributeEventListener(
|
| if (!frame->GetDocument()->CanExecuteScripts(kAboutToExecuteScript))
|
| return nullptr;
|
|
|
| - TextPosition position = frame->Script().EventHandlerPosition();
|
| + TextPosition position = frame->GetScriptController().EventHandlerPosition();
|
| String source_url = frame->GetDocument()->Url().GetString();
|
|
|
| return V8LazyEventListener::Create(name.LocalName(), event_parameter_name,
|
|
|