mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
LibHTML: Rename Document's invalidate_{style,layout}() to update_foo()
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user