1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:28:13 +00:00

LibWeb: Create canvas bitmap when not existing in toDataURL and toBlob

This commit is contained in:
Bastiaan van der Plaat 2023-09-16 22:00:37 +02:00 committed by Andreas Kling
parent d24e07579f
commit 5e7a82a853
5 changed files with 34 additions and 3 deletions

View file

@ -33,7 +33,7 @@ public:
WebIDL::ExceptionOr<void> set_width(unsigned);
WebIDL::ExceptionOr<void> set_height(unsigned);
String to_data_url(StringView type, Optional<double> quality) const;
String to_data_url(StringView type, Optional<double> quality);
WebIDL::ExceptionOr<void> to_blob(JS::NonnullGCPtr<WebIDL::CallbackType> callback, StringView type, Optional<double> quality);
void present();