1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-14 21:47:35 +00:00

LibWeb: Parse "width" and "height" presentation attributes on <img>

These are HTML lengths that map to CSS width and height respectively.
This commit is contained in:
Andreas Kling 2020-07-22 01:16:27 +02:00
parent 5a7e57457e
commit a3feb46ad7
2 changed files with 18 additions and 0 deletions

View file

@ -51,6 +51,8 @@ public:
const Gfx::Bitmap* bitmap() const;
private:
virtual void apply_presentational_hints(StyleProperties&) const override;
void animate();
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) override;