1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:07:45 +00:00

LibWeb: Implement HTMLCanvasElement.toBlob()

This commit is contained in:
Karol Kosek 2023-08-03 01:29:31 +02:00 committed by Andreas Kling
parent 3239f0fb7b
commit b731705fec
4 changed files with 52 additions and 1 deletions

View file

@ -15,5 +15,7 @@ interface HTMLCanvasElement : HTMLElement {
[CEReactions] attribute unsigned long height;
USVString toDataURL(optional DOMString type = "image/png", optional double quality);
undefined toBlob(BlobCallback _callback, optional DOMString type = "image/png", optional double quality);
};
callback BlobCallback = undefined (Blob? blob);