mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
When scrolling the page, we may need to flush any pending layout changes. This is required because otherwise, we don't know if the target scroll position is valid. However, we don't need to *force* a layout. If the layout tree is already up-to-date, we can use it as-is. Also, if we're scrolling to (0, 0), we don't need to update the layout at all, since (0, 0) is always a guaranteed valid scroll position.
62 KiB
62 KiB