| Index: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| index d79f275d204581555d6660e4fc115b81ea2ba3f5..019b9e1d1215f5678c07919d683c4d77b71d0ba9 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.h
|
| @@ -74,6 +74,12 @@ public:
|
| void handleEvent(ExecutionContext*, Event*) final;
|
| virtual void handleEvent(ScriptState*, Event*);
|
|
|
| + v8::Local<v8::Value> getListenerOrNull(v8::Isolate* isolate, ExecutionContext* executionContext)
|
| + {
|
| + v8::Local<v8::Object> listener = getListenerObject(executionContext);
|
| + return listener.IsEmpty() ? v8::Null(isolate).As<v8::Value>() : listener.As<v8::Value>();
|
| + }
|
| +
|
| // Returns the listener object, either a function or an object, or the empty
|
| // handle if the user script is not compilable. No exception will be thrown
|
| // even if the user script is not compilable.
|
|
|