mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +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:
parent
4ee1e5b224
commit
8d3240d633
9 changed files with 71 additions and 18 deletions
|
@ -27,8 +27,9 @@ public:
|
|||
virtual size_t loop_count() const override { return m_loop_count; }
|
||||
virtual bool is_animated() const override { return m_animated; }
|
||||
|
||||
virtual Optional<int> natural_width() const override;
|
||||
virtual Optional<int> natural_height() const override;
|
||||
virtual Optional<CSSPixels> intrinsic_width() const override;
|
||||
virtual Optional<CSSPixels> intrinsic_height() const override;
|
||||
virtual Optional<float> intrinsic_aspect_ratio() const override;
|
||||
|
||||
private:
|
||||
AnimatedBitmapDecodedImageData(Vector<Frame>&&, size_t loop_count, bool animated);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue