Make sure long animation frames are reported for the input task
Since input handling tasks don't use the frame scheduler, the
animation frame timing monitor would only report them if they schedule rendering.
To fix that, the widget notifies the monitor of the frame that's
currently handling input, and that frame is considered the
task-attributed frame for the purpose of LoAF.
Note that though the focused frame can change mid-task, that scenario
wouldn't reproduce the bug since focusing schedules a render.
Added WPTs that reproduce this using pointer events.
Bug: 346918311
Change-Id: I510a8f58390ef3423afa0ce41d1dfda22ac74168
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5677195
Reviewed-by: Scott Haseley shaseley@chromium.org
Commit-Queue: Noam Rosenthal nrosenthal@chromium.org
Cr-Commit-Position: refs/heads/main@{#1325624}