|
@@ -816,7 +816,7 @@ void Document::update_layout()
|
|
|
|
|
|
browsing_context()->set_needs_display();
|
|
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())
|
|
if (auto* page = this->page())
|
|
page->client().page_did_layout();
|
|
page->client().page_did_layout();
|
|
}
|
|
}
|