diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-15 13:01:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-15 13:41:19 +0100 |
commit | b34dd0fb24fe74cd3686540c5f71c3c45c0641a8 (patch) | |
tree | 11afc1bb2789f12a1b23701e34b6c04111d58ea3 /Userland/Libraries/LibWeb/DOM | |
parent | 93f656119cff56154e6c6125f3573859facf0c19 (diff) | |
download | serenity-b34dd0fb24fe74cd3686540c5f71c3c45c0641a8.zip |
LibWeb: Repaint entire viewport after document layout
This fixes an issue with the eyes on ACID2 not appearing until the
page is repainted after loading.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index fc49ffa2e0..cdafa8eee3 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -420,7 +420,7 @@ void Document::update_layout() root_formatting_context.run(*m_layout_root, Layout::LayoutMode::Default); - m_layout_root->set_needs_display(); + browsing_context()->set_needs_display(); if (browsing_context()->is_top_level()) { if (auto* page = this->page()) |