mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibWeb: Make ImageBox ask ImageProvider for intrinsic size and ratio
This paves the way for ImageProvider to have something vector-based underneath. :^)
This commit is contained in:
@@ -78,6 +78,9 @@ public:
|
||||
void upgrade_pending_request_to_current_request();
|
||||
|
||||
// ^Layout::ImageProvider
|
||||
virtual Optional<CSSPixels> intrinsic_width() const override;
|
||||
virtual Optional<CSSPixels> intrinsic_height() const override;
|
||||
virtual Optional<float> intrinsic_aspect_ratio() const override;
|
||||
virtual RefPtr<Gfx::Bitmap const> current_image_bitmap() const override;
|
||||
virtual void set_visible_in_viewport(bool) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user