diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.cpp b/Userland/Libraries/LibWeb/DOM/Document.cpp index 286403d5d4..9ea97816b6 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -889,6 +889,9 @@ void Document::update_layout() layout_state.commit(); + // Broadcast the current viewport rect to any new paintables, so they know whether they're visible or not. + browsing_context()->inform_all_viewport_clients_about_the_current_viewport_rect(); + browsing_context()->set_needs_display(); if (browsing_context()->is_top_level() && browsing_context()->active_document() == this) { |