mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add a preference to control ImageBitmap while it's incomplete.
This commit is contained in:
parent
f6f1648e56
commit
d3867c32db
10 changed files with 11 additions and 7 deletions
|
@ -193,6 +193,9 @@ mod gen {
|
|||
gamepad: {
|
||||
enabled: bool,
|
||||
},
|
||||
imagebitmap: {
|
||||
enabled: bool,
|
||||
},
|
||||
microdata: {
|
||||
testing: {
|
||||
enabled: bool,
|
||||
|
|
|
@ -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