Index: third_party/WebKit/Source/core/events/EventTarget.cpp |
diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp |
index 1e283f2351d51fd792e8f6fc3dcf992b9350ae6b..4072921002a287b8fa727b0ec2a4b04b849c0509 100644 |
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp |
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp |
@@ -256,7 +256,7 @@ bool EventTarget::clearAttributeEventListener(const AtomicString& eventType) |
bool EventTarget::dispatchEventForBindings(Event* event, ExceptionState& exceptionState) |
{ |
- if (event->type().isEmpty()) { |
+ if (!event->initialized()) { |
exceptionState.throwDOMException(InvalidStateError, "The event provided is uninitialized."); |
return false; |
} |
@@ -360,7 +360,7 @@ void EventTarget::countLegacyEvents(const AtomicString& legacyTypeName, EventLis |
DispatchEventResult EventTarget::fireEventListeners(Event* event) |
{ |
ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden()); |
- ASSERT(event && !event->type().isEmpty()); |
+ ASSERT(event && event->initialized()); |
tkent
2016/05/02 00:19:27
nit: Split this into two.
DCHECK(event);
D
ramya.v
2016/05/02 05:31:44
Done.
|
EventTargetData* d = eventTargetData(); |
if (!d) |