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

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

Issue 273683006: ScriptPromise should understand the ScriptState from which the ScriptPromise is generated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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: Source/modules/imagebitmap/WindowImageBitmapFactories.idl
diff --git a/Source/modules/imagebitmap/WindowImageBitmapFactories.idl b/Source/modules/imagebitmap/WindowImageBitmapFactories.idl
index ae400f5425b3f2d2a02bdc33867bcba9c3b114b9..f7b85df1b1f14b192761c939fdd7f02f7b590b8f 100644
--- a/Source/modules/imagebitmap/WindowImageBitmapFactories.idl
+++ b/Source/modules/imagebitmap/WindowImageBitmapFactories.idl
@@ -33,12 +33,12 @@
RuntimeEnabled=ExperimentalCanvasFeatures,
TypeChecking=Interface|Nullable,
] partial interface Window {
- [RaisesException] Promise createImageBitmap(HTMLImageElement image);
- [RaisesException] Promise createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh);
- [RaisesException] Promise createImageBitmap(HTMLVideoElement video);
- [RaisesException] Promise createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh);
- [RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context);
- [RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh);
- [RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas);
- [RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLImageElement image);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLImageElement image, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLVideoElement video);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLVideoElement video, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(CanvasRenderingContext2D context, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(HTMLCanvasElement canvas, long sx, long sy, long sw, long sh);
};

Powered by Google App Engine
This is Rietveld 408576698