Bug 1809740 Support from-image for the createImageBitmap imageOrientation option r=smaug

Currently only the value 'flipY' is checked in code, with 'none' being the
default behaviour. Upstream web platform tests now use the value 'from-image' in tests
which now fail unless 'from-image' is accepted as a valid option.

More work will be required later to change the behaviour of the 'none' option.

Differential Revision: https://phabricator.services.mozilla.com/D166866
This commit is contained in:
Angus Sawyer 2023-01-22 21:45:48 +00:00
Родитель c5eeb9f4fc
Коммит e907a8d13e
4 изменённых файлов: 3 добавлений и 37 удалений

Просмотреть файл

@ -387,7 +387,7 @@ dictionary ChannelPixelLayout {
typedef sequence<ChannelPixelLayout> ImagePixelLayout;
enum ImageOrientation { "none", "flipY" };
enum ImageOrientation { "none", "flipY", "from-image" };
enum PremultiplyAlpha { "none", "premultiply", "default" };
enum ColorSpaceConversion { "none", "default" };
//enum ResizeQuality { "pixelated", "low", "medium", "high" };

Просмотреть файл

@ -5,35 +5,8 @@
[createImageBitmap from an HTMLVideoElement from a data URL imageOrientation: "flipY", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from an HTMLCanvasElement imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from an HTMLVideoElement imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from an HTMLVideoElement from a data URL imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from a bitmap HTMLImageElement imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from a vector HTMLImageElement imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from a bitmap SVGImageElement imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from a vector SVGImageElement imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from an OffscreenCanvas imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from an ImageData imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from an ImageBitmap imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
[createImageBitmap from a Blob imageOrientation: "from-image", and drawImage on the created ImageBitmap]
expected: FAIL
expected: FAIL

Просмотреть файл

@ -1,8 +1,3 @@
[createImageBitmap-sizeOverflow.html]
expected:
if (os == "android") and fission: [OK, TIMEOUT]
[createImageBitmap throws an InvalidStateError error with big imageBitmap scaled up in big height]
expected: FAIL
[createImageBitmap throws an InvalidStateError error with big imageBitmap scaled up in big width]
expected: FAIL
if (os == "android") and fission: [OK, TIMEOUT]

Просмотреть файл

@ -1,2 +0,0 @@
[imageBitmapRendering-transferFromImageBitmap.html]
expected: FAIL