1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibWeb: Allow loading of SVGs in ImageResource

This will allow for SVGs to be loaded when used in CSS rules.
This commit is contained in:
PrestonLTaylor 2023-06-04 18:33:12 +01:00 committed by Andreas Kling
parent c36b54a7bf
commit 080b4e5e27
3 changed files with 47 additions and 2 deletions

View file

@ -48,6 +48,8 @@ private:
explicit ImageResource(Resource&);
void decode_if_needed() const;
void decode_svg_image() const;
void decode_image() const;
mutable bool m_animated { false };
mutable int m_loop_count { 0 };