LibWeb: Invalidate style & layout inside iframes when they change size
This commit is contained in:
parent
618b857457
commit
485ef276bd
Notes:
sideshowbarker
2024-07-17 17:03:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/485ef276bd
1 changed files with 4 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue