1
Fork 0
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:
Andreas Kling 2019-10-14 17:56:19 +02:00
parent 61ef17b87a
commit 667b31746a
5 changed files with 13 additions and 13 deletions

View file

@ -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();
};