mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Rename ImageOrientation default to "from-image" (#34149)
The spec has changed since our implementation was written. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
f151cdf6ee
commit
80cc4500a3
1 changed files with 2 additions and 2 deletions
|
@ -21,13 +21,13 @@ typedef (CanvasImageSource or
|
||||||
Blob or
|
Blob or
|
||||||
ImageData) ImageBitmapSource;
|
ImageData) ImageBitmapSource;
|
||||||
|
|
||||||
enum ImageOrientation { "none", "flipY" };
|
enum ImageOrientation { "from-image", "flipY" };
|
||||||
enum PremultiplyAlpha { "none", "premultiply", "default" };
|
enum PremultiplyAlpha { "none", "premultiply", "default" };
|
||||||
enum ColorSpaceConversion { "none", "default" };
|
enum ColorSpaceConversion { "none", "default" };
|
||||||
enum ResizeQuality { "pixelated", "low", "medium", "high" };
|
enum ResizeQuality { "pixelated", "low", "medium", "high" };
|
||||||
|
|
||||||
dictionary ImageBitmapOptions {
|
dictionary ImageBitmapOptions {
|
||||||
ImageOrientation imageOrientation = "none";
|
ImageOrientation imageOrientation = "from-image";
|
||||||
PremultiplyAlpha premultiplyAlpha = "default";
|
PremultiplyAlpha premultiplyAlpha = "default";
|
||||||
ColorSpaceConversion colorSpaceConversion = "default";
|
ColorSpaceConversion colorSpaceConversion = "default";
|
||||||
[EnforceRange] unsigned long resizeWidth;
|
[EnforceRange] unsigned long resizeWidth;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue