| Index: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| index 428858a45328c12586c78433acc88ab934cca2f1..e51a36194600969690d754edd14d7d4f56ce5b5e 100644
|
| --- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| +++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <memory>
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/fileapi/Blob.h"
|
| #include "core/frame/ImageBitmap.h"
|
| #include "core/html/ImageData.h"
|
| @@ -337,8 +338,8 @@ ScriptPromise OffscreenCanvas::convertToBlob(ScriptState* script_state,
|
| ScriptPromiseResolver* resolver = ScriptPromiseResolver::Create(script_state);
|
|
|
| Document* document =
|
| - script_state->GetExecutionContext()->IsDocument()
|
| - ? static_cast<Document*>(script_state->GetExecutionContext())
|
| + ExecutionContext::From(script_state)->IsDocument()
|
| + ? static_cast<Document*>(ExecutionContext::From(script_state))
|
| : nullptr;
|
|
|
| CanvasAsyncBlobCreator* async_creator = CanvasAsyncBlobCreator::Create(
|
|
|