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

Unified Diff: Source/modules/imagebitmap/ImageBitmapFactories.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/ImageBitmapFactories.idl
diff --git a/Source/modules/imagebitmap/ImageBitmapFactories.idl b/Source/modules/imagebitmap/ImageBitmapFactories.idl
index 3fdea03672e6703a0ffdbcad1408c208cbe6bdbb..f095d8c13d29302f31489dcf3fa79ee0396c1a6d 100644
--- a/Source/modules/imagebitmap/ImageBitmapFactories.idl
+++ b/Source/modules/imagebitmap/ImageBitmapFactories.idl
@@ -48,12 +48,12 @@ typedef (// HTMLImageElement or
RuntimeEnabled=ExperimentalCanvasFeatures,
TypeChecking=Interface|Nullable,
] interface ImageBitmapFactories {
- [RaisesException] Promise createImageBitmap(Blob blob);
- [RaisesException] Promise createImageBitmap(Blob blob, long sx, long sy, long sw, long sh);
- [RaisesException] Promise createImageBitmap(ImageData data);
- [RaisesException] Promise createImageBitmap(ImageData data, long sx, long sy, long sw, long sh);
- [RaisesException] Promise createImageBitmap(ImageBitmap bitmap);
- [RaisesException] Promise createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(Blob blob);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(Blob blob, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageData data);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageData data, long sx, long sy, long sw, long sh);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmap bitmap);
+ [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmap bitmap, long sx, long sy, long sw, long sh);
};
Window implements ImageBitmapFactories;
« no previous file with comments | « Source/modules/imagebitmap/ImageBitmapFactories.cpp ('k') | Source/modules/imagebitmap/WindowImageBitmapFactories.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698