Index: Source/modules/InitModules.cpp |
diff --git a/Source/modules/InitModules.cpp b/Source/modules/InitModules.cpp |
index d0e8b903aece57d655baf0d9f44347c09df8a86f..0752e927df317b4396b084c86fdc8ac94cbac891 100644 |
--- a/Source/modules/InitModules.cpp |
+++ b/Source/modules/InitModules.cpp |
@@ -25,13 +25,10 @@ void ModulesInitializer::initEventTargetNames() |
EventTargetNames::initModules(); |
} |
-PassRefPtrWillBeRawPtr<Event> createEventModules(const String& eventType, ExceptionState& exceptionState) |
+void ModulesInitializer::registerEventFactory() |
{ |
- RefPtrWillBeRawPtr<Event> event = EventModulesFactory::create(eventType); |
- if (event) |
- return event.release(); |
- |
- return Document::createEvent(eventType, exceptionState); |
+ CoreInitializer::registerEventFactory(); |
+ Document::registerEventFactory(new EventModulesFactory()); |
} |
} // namespace WebCore |