mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +00:00
LibWeb: Mark elements for style update after their children change
This commit is contained in:
parent
1b6f0f857e
commit
edbd8b22e8
2 changed files with 7 additions and 0 deletions
|
@ -389,4 +389,10 @@ int Element::client_height() const
|
||||||
return box.absolute_rect().height();
|
return box.absolute_rect().height();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Element::children_changed()
|
||||||
|
{
|
||||||
|
Node::children_changed();
|
||||||
|
set_needs_style_update(true);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
RefPtr<Layout::Node> create_layout_node() override;
|
RefPtr<Layout::Node> create_layout_node() override;
|
||||||
|
virtual void children_changed() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Attribute* find_attribute(const FlyString& name);
|
Attribute* find_attribute(const FlyString& name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue