diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-20 16:25:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-20 16:25:54 +0100 |
commit | 485ef276bd576aa01f83b006cee84a1367c4b7bc (patch) | |
tree | 9888d99e52c065360b5cbdb4cae8fc8267ed410d /Userland/Libraries | |
parent | 618b8574574f8c1404b637d338c67fbba771f692 (diff) | |
download | serenity-485ef276bd576aa01f83b006cee84a1367c4b7bc.zip |
LibWeb: Invalidate style & layout inside iframes when they change size
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp index 71f34b31d9..53aed5d5f2 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContext.cpp @@ -137,8 +137,10 @@ void BrowsingContext::set_size(Gfx::IntSize const& size) return; m_size = size; - if (auto* document = active_document()) - document->set_needs_layout(); + if (auto* document = active_document()) { + document->invalidate_style(); + document->invalidate_layout(); + } for (auto* client : m_viewport_clients) client->browsing_context_did_set_viewport_rect(viewport_rect()); |