| Index: core/imagebitmap/ImageBitmapFactories.idl
|
| diff --git a/core/imagebitmap/ImageBitmapFactories.idl b/core/imagebitmap/ImageBitmapFactories.idl
|
| index 376fafa1c0e090d170d1709c5b7d61ef9b81ace7..02b3425e417257d4f5b401faf374a8a9336bc00b 100644
|
| --- a/core/imagebitmap/ImageBitmapFactories.idl
|
| +++ b/core/imagebitmap/ImageBitmapFactories.idl
|
| @@ -30,31 +30,24 @@
|
|
|
| // https://html.spec.whatwg.org/#imagebitmapfactories
|
|
|
| -// FIXME: should use typedef instead, but
|
| -// requires better union type support: http://crbug.com/240176
|
| -/*
|
| -typedef (// HTMLImageElement or
|
| - // HTMLVideoElement or
|
| - // HTMLCanvasElement or
|
| +typedef (HTMLImageElement or
|
| + HTMLVideoElement or
|
| + HTMLCanvasElement or
|
| Blob or
|
| ImageData or
|
| - // CanvasRenderingContext2D or
|
| ImageBitmap) ImageBitmapSource;
|
| -*/
|
|
|
| [
|
| LegacyTreatAsPartialInterface,
|
| NoInterfaceObject, // Always used on target of 'implements'
|
| Exposed=(Window,Worker),
|
| - RuntimeEnabled=ExperimentalCanvasFeatures,
|
| - TypeChecking=Interface,
|
| ] interface ImageBitmapFactories {
|
| - [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);
|
| + [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmapSource imageBitmap);
|
| + [CallWith=ScriptState, RaisesException, RuntimeEnabled=ExperimentalCanvasFeatures] Promise createImageBitmap(
|
| + ImageBitmapSource imageBitmap, ImageBitmapOptions options);
|
| + [CallWith=ScriptState, RaisesException] Promise createImageBitmap(ImageBitmapSource imageBitmap, long sx, long sy, long sw, long sh);
|
| + [CallWith=ScriptState, RaisesException, RuntimeEnabled=ExperimentalCanvasFeatures] Promise createImageBitmap(
|
| + ImageBitmapSource imageBitmap, long sx, long sy, long sw, long sh, ImageBitmapOptions options);
|
| };
|
|
|
| Window implements ImageBitmapFactories;
|
|
|