| 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 bea689d209f431c190aadf7a1f775c4a778ded85..80aa44dd7260023439ec109d05cb3663f05c7b95 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptEventListener.cpp
|
| @@ -30,8 +30,10 @@
|
|
|
| #include "bindings/core/v8/ScriptEventListener.h"
|
|
|
| +#include "bindings/core/v8/ScheduledAction.h"
|
| #include "bindings/core/v8/ScriptController.h"
|
| #include "bindings/core/v8/ScriptState.h"
|
| +#include "bindings/core/v8/SourceLocation.h"
|
| #include "bindings/core/v8/V8AbstractEventListener.h"
|
| #include "bindings/core/v8/V8Binding.h"
|
| #include "bindings/core/v8/WindowProxy.h"
|
| @@ -144,4 +146,17 @@ void getFunctionLocation(v8::Local<v8::Function> function,
|
| columnNumber = function->GetScriptColumnNumber();
|
| }
|
|
|
| +std::unique_ptr<SourceLocation> getFunctionLocation(
|
| + ExecutionContext* executionContext,
|
| + EventListener* listener) {
|
| + v8::Isolate* isolate = toIsolate(executionContext);
|
| + v8::HandleScope handleScope(isolate);
|
| + v8::Local<v8::Object> handler =
|
| + eventListenerHandler(executionContext, listener);
|
| + if (handler.IsEmpty())
|
| + return nullptr;
|
| + return SourceLocation::fromFunction(
|
| + eventListenerEffectiveFunction(isolate, handler));
|
| +}
|
| +
|
| } // namespace blink
|
|
|