mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
LibWeb: Update the ICB's idea of the viewport rect after Frame resize
This makes animations start if they are uncovered by a resize.
This commit is contained in:
parent
40de84ba67
commit
0324144e2a
1 changed files with 4 additions and 1 deletions
|
@ -110,8 +110,11 @@ void Frame::set_size(const Gfx::IntSize& size)
|
||||||
if (m_size == size)
|
if (m_size == size)
|
||||||
return;
|
return;
|
||||||
m_size = size;
|
m_size = size;
|
||||||
if (m_document)
|
if (m_document) {
|
||||||
m_document->update_layout();
|
m_document->update_layout();
|
||||||
|
if (m_document->layout_node())
|
||||||
|
m_document->layout_node()->did_set_viewport_rect({}, viewport_rect());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Frame::set_viewport_scroll_offset(const Gfx::IntPoint& offset)
|
void Frame::set_viewport_scroll_offset(const Gfx::IntPoint& offset)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue