LibWeb: Notify canvas context when width or height attribute is changed

This commit is contained in:
Gingeh 2024-12-28 15:47:58 +11:00 committed by Andreas Kling
commit 42a8effae5
Notes: github-actions[bot] 2024-12-28 09:38:07 +00:00
4 changed files with 26 additions and 0 deletions

View file

@ -38,6 +38,8 @@ public:
WebIDL::ExceptionOr<void> set_width(WebIDL::UnsignedLong);
WebIDL::ExceptionOr<void> set_height(WebIDL::UnsignedLong);
virtual void attribute_changed(FlyString const& local_name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
String to_data_url(StringView type, JS::Value quality);
WebIDL::ExceptionOr<void> to_blob(GC::Ref<WebIDL::CallbackType> callback, StringView type, JS::Value quality);