WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(36.44 KB, patch)
2020-01-23 12:17 PST
,
Antoine Quint
no flags
Details
Formatted Diff
Diff
Patch
(36.54 KB, patch)
2020-01-23 12:23 PST
,
Antoine Quint
no flags
Details
Formatted Diff
Diff
Patch
(37.33 KB, patch)
2020-01-24 01:52 PST
,
Antoine Quint
dino
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2020-01-23 12:01:10 PST
Created
attachment 388572
[details]
Patch
Antoine Quint
Comment 2
2020-01-23 12:17:14 PST
Created
attachment 388577
[details]
Patch
Antoine Quint
Comment 3
2020-01-23 12:23:15 PST
Created
attachment 388578
[details]
Patch
Antoine Quint
Comment 4
2020-01-24 01:52:21 PST
Created
attachment 388660
[details]
Patch
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
Committed
r255076
: <
https://trac.webkit.org/changeset/255076
>
Radar WebKit Bug Importer
Comment 8
2020-01-24 09:36:15 PST
<
rdar://problem/58870279
>
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