canvas: Add OffscreenCanvas 'convertToBlob' method (#37786)

Follow the HTML speficication and add missing 'convertToBlob' method
to OffscreenCanvas interface.

https://html.spec.whatwg.org/multipage/#dom-offscreencanvas-converttoblob

Testing: Improvements in the following tests
-
html/canvas/offscreen/manual/convert-to-blob/offscreencanvas.convert.to.blob*
-
html/canvas/offscreen/manual/wide-gamut-canvas/2d.color.space.p3.convertToBlobp3.canvas.html

Fixes: #24272

Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>
This commit is contained in:
Andrei Volykhin 2025-07-04 09:58:12 +03:00 committed by GitHub
parent 3ba5b89ef2
commit 6ba54e4d79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 187 additions and 187 deletions

View file

@ -519,7 +519,7 @@ DOMInterfaces = {
},
'OffscreenCanvas': {
'canGc': ['GetContext', 'SetHeight', 'SetWidth'],
'canGc': ['ConvertToBlob', 'GetContext', 'SetHeight', 'SetWidth'],
},
'OffscreenCanvasRenderingContext2D': {