| 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 2f287b36a75b8f9d58f0cfc4f61b89788eb359e6..84b1cf317c901bfddcb39fabbe4b9688d1e14f46 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -4523,7 +4523,7 @@ Event* Document::createEvent(ScriptState* script_state,
|
| const String& event_type,
|
| ExceptionState& exception_state) {
|
| Event* event = nullptr;
|
| - ExecutionContext* execution_context = script_state->GetExecutionContext();
|
| + ExecutionContext* execution_context = ExecutionContext::From(script_state);
|
| for (const auto& factory : EventFactories()) {
|
| event = factory->Create(execution_context, event_type);
|
| if (event) {
|
|
|