LibWeb: Add a getter for the default image bitmap of HTMLImageElement

The default image bitmap is the first frame for animated bitmaps, and
the only frame for non-animated bitmaps.
This commit is contained in:
Idan Horowitz 2025-08-03 20:46:16 +03:00 committed by Jelle Raaijmakers
commit cc0496284b
Notes: github-actions[bot] 2025-08-03 19:49:21 +00:00
2 changed files with 8 additions and 0 deletions

View file

@ -50,6 +50,7 @@ public:
String alt() const { return get_attribute_value(HTML::AttributeNames::alt); }
RefPtr<Gfx::ImmutableBitmap> immutable_bitmap() const;
RefPtr<Gfx::ImmutableBitmap> default_image_bitmap(Gfx::IntSize = {}) const;
WebIDL::UnsignedLong width() const;
WebIDL::ExceptionOr<void> set_width(WebIDL::UnsignedLong);