1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47: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

@ -44,6 +44,9 @@ public:
// Some elements, such as the HTMLMediaElement, must have a unique task source per instance.
// Keep this field last, to serve as the base value of all unique task sources.
UniqueTaskSourceStart,
// https://html.spec.whatwg.org/multipage/canvas.html#canvas-blob-serialisation-task-source
CanvasBlobSerializationTask,
};
static NonnullOwnPtr<Task> create(Source source, DOM::Document const* document, JS::SafeFunction<void()> steps)