mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Avoid potential infinite recursion in Document::update_layout
This commit is contained in:
parent
15c15116dd
commit
aa585c4182
|
|
@ -1144,7 +1144,7 @@ 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 (navigable->container())
|
||||
if (navigable->container() && &navigable->container()->document() != this)
|
||||
navigable->container()->document().update_layout();
|
||||
|
||||
update_style();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user