mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Merge Document::layout() and Document::update_layout()
There is now only Document::update_layout().
This commit is contained in:
@@ -113,7 +113,7 @@ String HTMLElement::inner_text()
|
||||
StringBuilder builder;
|
||||
|
||||
// innerText for element being rendered takes visibility into account, so force a layout and then walk the layout tree.
|
||||
document().layout();
|
||||
document().update_layout();
|
||||
if (!layout_node())
|
||||
return text_content();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user