mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:55:08 +00:00
LibWeb: Merge Document::layout() and Document::update_layout()
There is now only Document::update_layout().
This commit is contained in:
parent
dbfce38c90
commit
3c9dcec442
5 changed files with 6 additions and 15 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue