LibWeb: Simplify Animation::update_finished_state a bit

This removes the two boolean hack in favor of using the existing
mechanism to remove queued tasks. It also exposes the element
invalidation behavior for call sites that don't necessarily want to
update the finished state, but still need to invalidate the associated
target.
This commit is contained in:
Matthew Olsson 2024-02-10 20:52:58 -07:00 committed by Andreas Kling
commit 06a8674eec
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00
3 changed files with 37 additions and 31 deletions

View file

@ -49,6 +49,7 @@ namespace Web::HTML::EventNames {
__ENUMERATE_HTML_EVENT(emptied) \
__ENUMERATE_HTML_EVENT(ended) \
__ENUMERATE_HTML_EVENT(error) \
__ENUMERATE_HTML_EVENT(finish) \
__ENUMERATE_HTML_EVENT(focus) \
__ENUMERATE_HTML_EVENT(formdata) \
__ENUMERATE_HTML_EVENT(hashchange) \