mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +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;
|
return;
|
||||||
m_size = size;
|
m_size = size;
|
||||||
|
|
||||||
if (auto* document = active_document())
|
if (auto* document = active_document()) {
|
||||||
document->set_needs_layout();
|
document->invalidate_style();
|
||||||
|
document->invalidate_layout();
|
||||||
|
}
|
||||||
|
|
||||||
for (auto* client : m_viewport_clients)
|
for (auto* client : m_viewport_clients)
|
||||||
client->browsing_context_did_set_viewport_rect(viewport_rect());
|
client->browsing_context_did_set_viewport_rect(viewport_rect());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue