1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibWeb: Give <svg> elements a size again

This replaces the unused width() and height() methods. The size now
defaults to 100% by 100% as in the spec.
This commit is contained in:
Sam Atkins 2022-02-15 16:42:00 +00:00 committed by Andreas Kling
parent d159511d85
commit ae93aeb414
2 changed files with 15 additions and 8 deletions

View file

@ -20,8 +20,7 @@ public:
virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
unsigned width() const;
unsigned height() const;
virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
virtual bool requires_svg_container() const override { return false; }
virtual bool is_svg_container() const override { return true; }