mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #26623 - jdm:imagebitmap-gate, r=gterzian
Add a preference to control ImageBitmap while it's incomplete. Hubs tries to make use of incomplete APIs to load textures and this causes errors. It works fine if we hide the interface instead.
This commit is contained in:
commit
ce076a8382
10 changed files with 11 additions and 7 deletions
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
|
||||
//[Exposed=(Window,Worker), Serializable, Transferable]
|
||||
[Exposed=(Window,Worker)]
|
||||
[Exposed=(Window,Worker), Pref="dom.imagebitmap.enabled"]
|
||||
interface ImageBitmap {
|
||||
readonly attribute unsigned long width;
|
||||
readonly attribute unsigned long height;
|
||||
|
|
|
@ -24,6 +24,7 @@ interface mixin WindowOrWorkerGlobalScope {
|
|||
void queueMicrotask(VoidFunction callback);
|
||||
|
||||
// ImageBitmap
|
||||
[Pref="dom.imagebitmap.enabled"]
|
||||
Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, optional ImageBitmapOptions options = {});
|
||||
// Promise<ImageBitmap> createImageBitmap(
|
||||
// ImageBitmapSource image, long sx, long sy, long sw, long sh, optional ImageBitmapOptions options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue