mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +00:00
LibWeb: Invalidate style & layout inside iframes when they change size
This commit is contained in:
parent
618b857457
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
Add a link
Reference in a new issue