Index: Source/modules/imagebitmap/ImageBitmapFactories.cpp |
diff --git a/Source/modules/imagebitmap/ImageBitmapFactories.cpp b/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
index 96b7ddfb9d6408d95c1cdd571e71f8d7b79e9777..bede367a95d71d4093d62a69204e80e53c573a5b 100644 |
--- a/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
+++ b/Source/modules/imagebitmap/ImageBitmapFactories.cpp |
@@ -63,7 +63,7 @@ static IntSize sizeFor(HTMLVideoElement* video) |
return IntSize(); |
} |
-static ScriptPromise fulfillImageBitmap(ExecutionContext* context, PassRefPtr<ImageBitmap> imageBitmap) |
+static ScriptPromise fulfillImageBitmap(ExecutionContext* context, PassRefPtrWillBeRawPtr<ImageBitmap> imageBitmap) |
{ |
ScriptPromise promise = ScriptPromise::createPending(context); |
RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(promise, context); |
@@ -342,7 +342,7 @@ void ImageBitmapFactories::ImageBitmapLoader::didFinishLoading() |
m_cropRect = IntRect(IntPoint(), image->size()); |
} |
- RefPtr<ImageBitmap> imageBitmap = ImageBitmap::create(image.get(), m_cropRect); |
+ RefPtrWillBeRawPtr<ImageBitmap> imageBitmap = ImageBitmap::create(image.get(), m_cropRect); |
ScriptScope scope(m_scriptState); |
m_resolver->resolve(imageBitmap.release()); |
m_factory->didFinishLoading(this); |