mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 18:00:31 +00:00
Dispatching scroll events could cause new scroll events to get lined up and added to `m_pending_scroll_events`. The spec then asks us to empty out that list, removing those newly added events. Prevent doing that by emptying out the list before iterating over the events. Fixes part of the WPT test `html/webappapis/scripting/event- loops/new-scroll-event-dispatched-at-next-updating-rendering-time.html`. |
||
|---|---|---|
| .. | ||
| EventLoop.cpp | ||
| EventLoop.h | ||
| Task.cpp | ||
| Task.h | ||
| TaskQueue.cpp | ||
| TaskQueue.h | ||