diff options
Diffstat (limited to 'Libraries/LibWeb/DOM')
-rw-r--r-- | Libraries/LibWeb/DOM/Document.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index fb4bcd838f..a6efb1e533 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -246,7 +246,8 @@ void Document::layout() m_layout_root->layout(); m_layout_root->set_needs_display(); - frame()->page().client().page_did_layout(); + if (frame()->is_main_frame()) + frame()->page().client().page_did_layout(); } void Document::update_style() |