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
commit e424e4749f
Notes: sideshowbarker 2024-07-19 01:12:00 +09:00
4 changed files with 7 additions and 5 deletions

View file

@ -103,6 +103,8 @@ public:
virtual bool is_list_item() const { return false; }
bool has_style() const { return m_has_style; }
virtual bool can_have_children() const { return true; }
bool is_inline() const { return m_inline; }
void set_inline(bool b) { m_inline = b; }