1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Allow <svg> layout boxes to have children

We can't say that "no replaced boxes can have children", since that
breaks SVG. Instead, let each LayoutNode decide whether it's allowed
to have children.

Fixes #4223.
This commit is contained in:
Andreas Kling 2020-11-29 15:29:10 +01:00
parent 1ecea2f105
commit e424e4749f
4 changed files with 7 additions and 5 deletions

View file

@ -62,6 +62,8 @@ public:
virtual void prepare_for_replaced_layout() { }
virtual bool can_have_children() const override { return false; }
protected:
virtual void split_into_lines(Layout::BlockBox& container, LayoutMode) override;