mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Replace the Window::scroll_by(0, 0) call at the end of Document::update_layout() with a dedicated Navigable::clamp_viewport_scroll_offset() that directly clamps the viewport scroll offset to valid bounds. The old approach re-entered layout from within layout, since scroll_by() would trigger another layout update. The new approach is called from the event loop's rendering steps, after layout is complete.