mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibHTML: Rename Document's invalidate_{style,layout}() to update_foo()
This commit is contained in:
parent
61ef17b87a
commit
667b31746a
5 changed files with 13 additions and 13 deletions
|
@ -158,17 +158,17 @@ void Document::layout()
|
|||
m_layout_root->layout();
|
||||
}
|
||||
|
||||
void Document::invalidate_style()
|
||||
void Document::update_style()
|
||||
{
|
||||
m_layout_root = nullptr;
|
||||
invalidate_layout();
|
||||
update_layout();
|
||||
}
|
||||
|
||||
void Document::invalidate_layout()
|
||||
void Document::update_layout()
|
||||
{
|
||||
layout();
|
||||
if (on_invalidate_layout)
|
||||
on_invalidate_layout();
|
||||
if (on_layout_updated)
|
||||
on_layout_updated();
|
||||
}
|
||||
|
||||
RefPtr<LayoutNode> Document::create_layout_node(const StyleResolver&, const StyleProperties*) const
|
||||
|
@ -202,6 +202,6 @@ void Document::set_hovered_node(Node* node)
|
|||
return;
|
||||
|
||||
m_hovered_node = node;
|
||||
invalidate_style();
|
||||
update_style();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue