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

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

Issue 1233173002: Have ScriptPromiseResolver on the Oilpan heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix webusb ScriptPromiseResolver usage Created 5 years, 4 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
« no previous file with comments | « Source/modules/geofencing/Geofencing.cpp ('k') | Source/modules/mediastream/MediaDevices.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
diff --git a/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp b/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
index 841fa2309c54f0b170e7af4305877c22215d6498..2d02ab5c44381840a71e2e00d80e144cb0477180 100644
--- a/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
+++ b/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
@@ -68,7 +68,7 @@ static IntSize sizeFor(HTMLVideoElement* video)
static ScriptPromise fulfillImageBitmap(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ImageBitmap> imageBitmap)
{
- RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
+ ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
if (imageBitmap) {
resolver->resolve(imageBitmap);
« no previous file with comments | « Source/modules/geofencing/Geofencing.cpp ('k') | Source/modules/mediastream/MediaDevices.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698