diff options
Diffstat (limited to 'Userland')
-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 121056bddb..6c383f7959 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.cpp +++ b/Userland/Libraries/LibWeb/DOM/Document.cpp @@ -816,7 +816,7 @@ void Document::update_layout() browsing_context()->set_needs_display(); - if (browsing_context()->is_top_level()) { + if (browsing_context()->is_top_level() && browsing_context()->active_document() == this) { if (auto* page = this->page()) page->client().page_did_layout(); } |