| Index: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp
|
| diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp
|
| index 71dfbe1b37605862c1972407d97d91ab0d591790..674817297a6192c3dc369a171613e5ec744f591e 100644
|
| --- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp
|
| +++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp
|
| @@ -65,18 +65,18 @@ OffscreenCanvasRenderingContext2D* OffscreenCanvas::getContext(const String& id,
|
| return static_cast<OffscreenCanvasRenderingContext2D*>(m_context.get());
|
| }
|
|
|
| -RawPtr<ImageBitmap> OffscreenCanvas::transferToImageBitmap(ExceptionState& exceptionState)
|
| +ImageBitmap* OffscreenCanvas::transferToImageBitmap(ExceptionState& exceptionState)
|
| {
|
| if (!m_context) {
|
| exceptionState.throwDOMException(InvalidStateError, "Cannot transfer an ImageBitmap from an OffscreenCanvas with no context");
|
| return nullptr;
|
| }
|
| - RawPtr<ImageBitmap> image = m_context->transferToImageBitmap(exceptionState);
|
| + ImageBitmap* image = m_context->transferToImageBitmap(exceptionState);
|
| if (!image) {
|
| // Undocumented exception (not in spec)
|
| exceptionState.throwDOMException(V8GeneralError, "Out of memory");
|
| }
|
| - return image.release();
|
| + return image;
|
| }
|
|
|
| OffscreenCanvasRenderingContext2D* OffscreenCanvas::renderingContext() const
|
|
|