Index: Source/web/WebDocument.cpp |
diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp |
index 5224978604ee9be226295892e797f5cd65c71d97..af379a91dfbda173df3bb0c0f350d40337c494a8 100644 |
--- a/Source/web/WebDocument.cpp |
+++ b/Source/web/WebDocument.cpp |
@@ -54,7 +54,6 @@ |
#include "core/loader/DocumentLoader.h" |
#include "core/rendering/RenderObject.h" |
#include "core/rendering/RenderView.h" |
-#include "modules/InitModules.h" |
#include "platform/weborigin/SecurityOrigin.h" |
#include "public/platform/WebURL.h" |
#include "public/web/WebAXObject.h" |
@@ -242,7 +241,7 @@ WebElement WebDocument::fullScreenElement() const |
WebDOMEvent WebDocument::createEvent(const WebString& eventType) |
{ |
TrackExceptionState exceptionState; |
- WebDOMEvent event(createEventModules(eventType, exceptionState)); |
+ WebDOMEvent event(unwrap<Document>()->createEvent(eventType, exceptionState)); |
if (exceptionState.hadException()) |
return WebDOMEvent(); |
return event; |