Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index d15908211b4b57fcda2a9368ec2579faf56e2dfc..52b09cdc396be07ce0b52c47f44fd8b27e2e758a 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -3909,9 +3909,6 @@ PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc |
RefPtrWillBeRawPtr<Event> event = EventFactory::create(eventType); |
if (event) |
return event.release(); |
- event = EventModulesFactory::create(eventType); // TODO: move this to modules http://crbug.com/358074 |
- if (event) |
- return event.release(); |
exceptionState.throwDOMException(NotSupportedError, "The provided event type ('" + eventType + "') is invalid."); |
return nullptr; |