Index: Source/modules/InitModules.cpp |
diff --git a/Source/modules/InitModules.cpp b/Source/modules/InitModules.cpp |
index ce663d0f11cc2f8ac744155c7c3b7a0393abdd6e..d0e8b903aece57d655baf0d9f44347c09df8a86f 100644 |
--- a/Source/modules/InitModules.cpp |
+++ b/Source/modules/InitModules.cpp |
@@ -5,9 +5,11 @@ |
#include "config.h" |
#include "InitModules.h" |
+#include "EventModulesFactory.h" |
#include "EventModulesNames.h" |
#include "EventTargetModulesNames.h" |
#include "EventTypeNames.h" |
+#include "core/dom/Document.h" |
namespace WebCore { |
@@ -23,4 +25,13 @@ void ModulesInitializer::initEventTargetNames() |
EventTargetNames::initModules(); |
} |
+PassRefPtrWillBeRawPtr<Event> createEventModules(const String& eventType, ExceptionState& exceptionState) |
+{ |
+ RefPtrWillBeRawPtr<Event> event = EventModulesFactory::create(eventType); |
+ if (event) |
+ return event.release(); |
+ |
+ return Document::createEvent(eventType, exceptionState); |
+} |
+ |
} // namespace WebCore |