LibWeb: Stop spamming animation events on the wrong event target

This patch fixes two issues:

- Animation events that should go to the target element now do
  (some were previously being dispatched on the animation itself.)
- We update the "previous phase" and "previous iteration" fields of
  animation effects, so that we can actually detect phase changes.
  This means we stop thinking animations always just started,
  something that caused each animation to send 60 animationstart
  events every second (to the wrong target!)
This commit is contained in:
Andreas Kling 2024-05-23 10:24:32 +02:00
commit f4636a0cf5
Notes: sideshowbarker 2024-07-17 17:06:59 +09:00
5 changed files with 72 additions and 11 deletions

View file

@ -0,0 +1,2 @@
animationstart
animationend