| 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 d0f32230eb9d19460f541d37edbe76016e63dfc1..6ef0630d57d2d42711f744f095cd31f58813385e 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -4416,10 +4416,11 @@ void Document::registerEventFactory(
|
| eventFactories().insert(std::move(eventFactory));
|
| }
|
|
|
| -Event* Document::createEvent(ExecutionContext* executionContext,
|
| +Event* Document::createEvent(ScriptState* scriptState,
|
| const String& eventType,
|
| ExceptionState& exceptionState) {
|
| Event* event = nullptr;
|
| + ExecutionContext* executionContext = scriptState->getExecutionContext();
|
| for (const auto& factory : eventFactories()) {
|
| event = factory->create(executionContext, eventType);
|
| if (event) {
|
|
|