1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibWeb: Merge Document::layout() and Document::update_layout()

There is now only Document::update_layout().
This commit is contained in:
Andreas Kling 2020-12-14 10:39:39 +01:00
parent dbfce38c90
commit 3c9dcec442
5 changed files with 6 additions and 15 deletions

View file

@ -102,7 +102,7 @@ void PageHost::set_viewport_rect(const Gfx::IntRect& rect)
{
page().main_frame().set_size(rect.size());
if (page().main_frame().document())
page().main_frame().document()->layout();
page().main_frame().document()->update_layout();
page().main_frame().set_viewport_scroll_offset(rect.location());
}