mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
committed by
Jelle Raaijmakers
parent
9b11e0051c
commit
cc0496284b
Notes:
github-actions[bot]
2025-08-03 19:49:21 +00:00
Author: https://github.com/IdanHo Commit: https://github.com/LadybirdBrowser/ladybird/commit/cc0496284be Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5695 Reviewed-by: https://github.com/gmta ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user