WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
275293
[SVG] Handle `repeatEvent` for svg animations
https://bugs.webkit.org/show_bug.cgi?id=275293
Summary
[SVG] Handle `repeatEvent` for svg animations
Ahmad Saleem
Reported
2024-06-08 12:22:37 PDT
Hi Team, While going through SVG Animations failure, I noticed that we fail 'repeat' event. Blink Commit:
https://chromium.googlesource.com/chromium/blink/+/f7d3a4aaa8598d79b137dde63e9b401ea351e1e9
WebKit Source:
https://github.com/WebKit/WebKit/blob/502bfe649c550c59266753403cb4b2ab86854333/Source/WebCore/svg/animation/SVGSMILElement.cpp
Following compiles:
> Source/WebCore/dom/EventNames.json:
Add -> "repeatEvent": { },
> Source/WebCore/svg/animation/SVGSMILElement.cpp:
In 'SVGSMILElement::progress': After: if (oldActiveState == Inactive) startedActiveInterval(); Add following: if (repeat && repeat != m_lastRepeat) smilEventSender().dispatchEventSoon(*this, eventNames().repeatEventEvent); In same, after 'if (seekToTime)' (within same loop) add following: if (repeat) { for (unsigned repeatEventCount = 1; repeatEventCount < repeat; repeatEventCount++) { smilEventSender().dispatchEventSoon(*this, eventNames().repeatEventEvent); } if (m_activeState == Inactive) smilEventSender().dispatchEventSoon(*this, eventNames().repeatEventEvent); } ___ It progress following:
https://wpt.fyi/results/svg/animations/repeat-event.svg?label=experimental&label=master&aligned
= ___ Just raising so we can fix it. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-06-15 12:23:14 PDT
<
rdar://problem/129919749
>
Ahmad Saleem
Comment 2
2025-08-09 14:34:55 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/29658
EWS
Comment 3
2025-08-14 16:14:53 PDT
Committed
298715@main
(d7366f00065a): <
https://commits.webkit.org/298715@main
> Reviewed commits have been landed. Closing PR #29658 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug