1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

LibWeb: Update Document::update_layout() to use navigables

This commit is contained in:
Aliaksandr Kalenik 2023-09-07 01:20:35 +02:00 committed by Andreas Kling
parent 6411fea552
commit 05cbc448b6

View file

@ -953,8 +953,8 @@ void Document::update_layout()
// NOTE: If our parent document needs a relayout, we must do that *first*.
// This is necessary as the parent layout may cause our viewport to change.
if (browsing_context() && browsing_context()->container())
browsing_context()->container()->document().update_layout();
if (navigable() && navigable()->container())
navigable()->container()->document().update_layout();
update_style();