mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Follow to the HTML specification and support of Blob as ImageBitmapSource to able use it as intermediate instance in "fetch() -> Blob -> ImageBitmap" execution sequence. https://html.spec.whatwg.org/multipage/#imagebitmapsource The specification says what these steps must run in parallel (outside the createImageBitmap task), but currently loading bytes from Blob and later image decoding happen in synchronous order while promise is fullfilled or rejected on bitmap task source. https://html.spec.whatwg.org/multipage/#the-imagebitmap-interface:blob-4 Testing: Improvements in the following WPT tests - html/canvas/element/compositing/2d.composite* - html/canvas/element/drawing-images-to-the-canvas/2d.drawImage* - html/canvas/element/manual/imagebitmap/createImageBitmap* - html/canvas/offscreen/compositing/2d.composite - html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage - webgl/tests/conformance/textures/image_bitmap_from_blob/* Fixes (partially): #34112 Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com> |
||
---|---|---|
.. | ||
2d.drawImage.svg.html.ini | ||
2d.drawImage.zerosource.html.ini | ||
2d.drawImage.zerosource.image.html.ini | ||
2d.drawImage.zerosource.worker.js.ini |