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

LibWeb: Mark elements for style update after their children change

This commit is contained in:
Andreas Kling 2021-10-12 17:53:52 +02:00
parent 1b6f0f857e
commit edbd8b22e8
2 changed files with 7 additions and 0 deletions

View file

@ -389,4 +389,10 @@ int Element::client_height() const
return box.absolute_rect().height();
}
void Element::children_changed()
{
Node::children_changed();
set_needs_style_update(true);
}
}

View file

@ -122,6 +122,7 @@ public:
protected:
RefPtr<Layout::Node> create_layout_node() override;
virtual void children_changed() override;
private:
Attribute* find_attribute(const FlyString& name);