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

Unified Diff: Source/modules/imagebitmap/ImageBitmapFactories.cpp

Issue 190183003: Oilpan: move ImageBitmap to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Control image resource lifetimes in tests using explicit GCs Created 6 years, 9 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
« Source/core/loader/ImageLoader.h ('K') | « Source/core/loader/ImageLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« Source/core/loader/ImageLoader.h ('K') | « Source/core/loader/ImageLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698