mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +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
|
@ -42,12 +42,12 @@ void HtmlView::set_document(Document* document)
|
|||
return;
|
||||
|
||||
if (m_document)
|
||||
m_document->on_invalidate_layout = nullptr;
|
||||
m_document->on_layout_updated = nullptr;
|
||||
|
||||
m_document = document;
|
||||
|
||||
if (m_document) {
|
||||
m_document->on_invalidate_layout = [this] {
|
||||
m_document->on_layout_updated = [this] {
|
||||
layout_and_sync_size();
|
||||
update();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue