| Index: third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
|
| index 5da2531c04194e3130988a59123366b9d76b9e1f..61e07bbe4806a6cf040df58d655a9e23cabd589d 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8AbstractEventListener.cpp
|
| @@ -90,8 +90,6 @@ void V8AbstractEventListener::handleEvent(ScriptState* scriptState, Event* event
|
|
|
| // Get the V8 wrapper for the event object.
|
| v8::Local<v8::Value> jsEvent = toV8(event, scriptState->context()->Global(), isolate());
|
| - if (jsEvent.IsEmpty())
|
| - return;
|
| invokeEventHandler(scriptState, event, v8::Local<v8::Value>::New(isolate(), jsEvent));
|
| }
|
|
|
| @@ -173,8 +171,6 @@ v8::Local<v8::Object> V8AbstractEventListener::getReceiverObject(ScriptState* sc
|
|
|
| EventTarget* target = event->currentTarget();
|
| v8::Local<v8::Value> value = toV8(target, scriptState->context()->Global(), isolate());
|
| - if (value.IsEmpty())
|
| - return v8::Local<v8::Object>();
|
| return v8::Local<v8::Object>::New(isolate(), v8::Local<v8::Object>::Cast(value));
|
| }
|
|
|
|
|