mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:27:45 +00:00
LibWeb: Update Document::update_layout() to use navigables
This commit is contained in:
parent
6411fea552
commit
05cbc448b6
1 changed files with 2 additions and 2 deletions
|
@ -953,8 +953,8 @@ void Document::update_layout()
|
||||||
|
|
||||||
// NOTE: If our parent document needs a relayout, we must do that *first*.
|
// 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.
|
// This is necessary as the parent layout may cause our viewport to change.
|
||||||
if (browsing_context() && browsing_context()->container())
|
if (navigable() && navigable()->container())
|
||||||
browsing_context()->container()->document().update_layout();
|
navigable()->container()->document().update_layout();
|
||||||
|
|
||||||
update_style();
|
update_style();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue