Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 3f705a66cb6232cab36249f635417b7d4ca7afd2..fd35e6f6dc9f132c1f1397de96dddf6532a67083 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -3965,11 +3965,11 @@ void Document::registerEventFactory(PassOwnPtr<EventFactoryBase> eventFactory) |
eventFactories().add(eventFactory); |
} |
-PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, ExceptionState& exceptionState) |
+PassRefPtrWillBeRawPtr<Event> Document::createEvent(ExecutionContext* executionContext, const String& eventType, ExceptionState& exceptionState) |
{ |
RefPtrWillBeRawPtr<Event> event = nullptr; |
for (const auto& factory : eventFactories()) { |
- event = factory->create(eventType); |
+ event = factory->create(executionContext, eventType); |
if (event) |
return event.release(); |
} |