Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: third_party/WebKit/Source/core/events/EventTarget.cpp

Issue 1479063003: Drop [LegacyInterfaceTypeChecking] for EventTarget's dispatchEvent() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 8ced267d8478712e378c3ddde7b5b95981c2825a..5526aa5b7c33d68b1fbfbc7c2a215db053ee570a 100644
--- a/third_party/WebKit/Source/core/events/EventTarget.cpp
+++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
@@ -249,10 +249,6 @@ bool EventTarget::clearAttributeEventListener(const AtomicString& eventType)
bool EventTarget::dispatchEventForBindings(PassRefPtrWillBeRawPtr<Event> event, ExceptionState& exceptionState)
{
- if (!event) {
- exceptionState.throwDOMException(InvalidStateError, "The event provided is null.");
- return false;
- }
if (event->type().isEmpty()) {
exceptionState.throwDOMException(InvalidStateError, "The event provided is uninitialized.");
return false;

Powered by Google App Engine
This is Rietveld 408576698