mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-22 03:40:31 +00: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. |
||
|---|---|---|
| .. | ||
| EventLoop.cpp | ||
| EventLoop.h | ||
| Task.cpp | ||
| Task.h | ||
| TaskQueue.cpp | ||
| TaskQueue.h | ||