RESOLVED FIXED 206688
[Web Animations] Support multiple CSS Animations with the same name in animation-name
https://bugs.webkit.org/show_bug.cgi?id=206688
Summary [Web Animations] Support multiple CSS Animations with the same name in animat...
Antoine Quint
Reported 2020-01-23 11:38:20 PST
[Web Animations] Support multiple CSS Animations with the same name in animation-name
Attachments
Patch (35.73 KB, patch)
2020-01-23 12:01 PST, Antoine Quint
no flags
Patch (36.44 KB, patch)
2020-01-23 12:17 PST, Antoine Quint
no flags
Patch (36.54 KB, patch)
2020-01-23 12:23 PST, Antoine Quint
no flags
Patch (37.33 KB, patch)
2020-01-24 01:52 PST, Antoine Quint
dino: review+
Antoine Quint
Comment 1 2020-01-23 12:01:10 PST
Antoine Quint
Comment 2 2020-01-23 12:17:14 PST
Antoine Quint
Comment 3 2020-01-23 12:23:15 PST
Antoine Quint
Comment 4 2020-01-24 01:52:21 PST
Dean Jackson
Comment 5 2020-01-24 09:22:54 PST
Comment on attachment 388660 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388660&action=review > Source/WebCore/animation/AnimationTimeline.cpp:224 > + for (size_t i = 0; i < cssAnimationList->size(); ++i) { > + if (cssAnimationList->animation(i) == backingAnimation) { > + auto newAnimationList = cssAnimationList->copy(); > + newAnimationList->remove(i); > + keyframeEffectStack.setCSSAnimationList(WTFMove(newAnimationList)); > + return; > + } > + } Why don't you add a remove() to CSSAnimationList that accepts an Animation as a parameter? Is there a reason you don't want to edit the list in place?
Antoine Quint
Comment 6 2020-01-24 09:27:25 PST
(In reply to Dean Jackson from comment #5) > Comment on attachment 388660 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=388660&action=review > > > Source/WebCore/animation/AnimationTimeline.cpp:224 > > + for (size_t i = 0; i < cssAnimationList->size(); ++i) { > > + if (cssAnimationList->animation(i) == backingAnimation) { > > + auto newAnimationList = cssAnimationList->copy(); > > + newAnimationList->remove(i); > > + keyframeEffectStack.setCSSAnimationList(WTFMove(newAnimationList)); > > + return; > > + } > > + } > > Why don't you add a remove() to CSSAnimationList that accepts an Animation > as a parameter? Is there a reason you don't want to edit the list in place? Yes, it comes down from RenderStyle as const.
Antoine Quint
Comment 7 2020-01-24 09:35:53 PST
Radar WebKit Bug Importer
Comment 8 2020-01-24 09:36:15 PST
Note You need to log in before you can comment on or make changes to this bug.