Index: third_party/WebKit/Source/core/frame/ImageBitmap.h |
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h |
index eab493042c8465f70969d62b06929c0c5d079729..490c78c0db27b373b503e32406b3acd76da9cd2e 100644 |
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h |
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h |
@@ -100,9 +100,7 @@ class CORE_EXPORT ImageBitmap final |
using WebType = sk_sp<SkImage>; |
static ImageBitmap* take(ScriptPromiseResolver*, sk_sp<SkImage>); |
- StaticBitmapImage* bitmapImage() const { |
- return (m_image) ? m_image.get() : nullptr; |
- } |
+ PassRefPtr<StaticBitmapImage> bitmapImage() const { return m_image; } |
PassRefPtr<Uint8Array> copyBitmapData(AlphaDisposition = DontPremultiplyAlpha, |
DataColorFormat = RGBAColorType); |
unsigned long width() const; |