LibWeb: Avoid potential infinite recursion in Document::update_layout
This commit is contained in:
parent
15c15116dd
commit
aa585c4182
Notes:
github-actions[bot]
2024-11-01 11:26:08 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/aa585c4182b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2081
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue