| Index: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
|
| diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
|
| index 2979dcbabdb74c80e0c7286a410af02a12fa8a23..3e96051d523af6807b4d4d26114cb5ba16d30d52 100644
|
| --- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
|
| +++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.cpp
|
| @@ -10,13 +10,11 @@
|
|
|
| namespace blink {
|
|
|
| -OffscreenCanvasRenderingContext2D* OffscreenCanvasModules::getContext(OffscreenCanvas& offscreenCanvas, const String& id, const CanvasContextCreationAttributes& attributes)
|
| +void OffscreenCanvasModules::getContext(ScriptState* scriptState, OffscreenCanvas& offscreenCanvas, const String& id, const CanvasContextCreationAttributes& attributes, OffscreenRenderingContext& result)
|
| {
|
| - CanvasRenderingContext* context = offscreenCanvas.getCanvasRenderingContext(id, attributes);
|
| - if (!context)
|
| - return nullptr;
|
| -
|
| - return static_cast<OffscreenCanvasRenderingContext2D*>(context);
|
| + CanvasRenderingContext* context = offscreenCanvas.getCanvasRenderingContext(scriptState, id, attributes);
|
| + if (context)
|
| + context->setOffscreenCanvasGetContextResult(result);
|
| }
|
|
|
| } // namespace blink
|
|
|