Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp

Issue 1864243004: Remove RawPtr from Source/modules Part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698