mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement HTMLCanvasElement.toBlob (#34938)
This refactors some of the code that is shared with toDataURL, and updates the webidl definition to match the current spec (using a default value for the mime type). Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
9aaa6934b7
commit
44d1e2ae0d
13 changed files with 206 additions and 130 deletions
|
@ -131,6 +131,7 @@ impl TaskManager {
|
|||
.cancel_pending_tasks_for_source(task_source_name);
|
||||
}
|
||||
|
||||
task_source_functions!(self, canvas_blob_task_source, Canvas);
|
||||
task_source_functions!(self, dom_manipulation_task_source, DOMManipulation);
|
||||
task_source_functions!(self, file_reading_task_source, FileReading);
|
||||
task_source_functions!(self, gamepad_task_source, Gamepad);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue