Summary: | Redefining @keyframes does not work | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mu-An Chiou <me> | ||||||||||
Component: | Animations | Assignee: | Antoine Quint <graouts> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | clopez, dino, ews-watchlist, graouts, graouts, koivisto, simon.fraser, webkit-bug-importer, youennf | ||||||||||
Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||||||||
Version: | Safari 14 | ||||||||||||
Hardware: | All | ||||||||||||
OS: | Unspecified | ||||||||||||
Bug Depends on: | |||||||||||||
Bug Blocks: | 235962 | ||||||||||||
Attachments: |
|
Description
Mu-An Chiou
2021-08-23 21:05:07 PDT
I did some work in this area recently, specifically these: https://bugs.webkit.org/show_bug.cgi?id=234895 https://bugs.webkit.org/show_bug.cgi?id=234955 However, fixing those bugs did not fix this particular bug. Created attachment 450519 [details]
Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess Created attachment 450521 [details]
Patch
Comment on attachment 450521 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450521&action=review > Source/WebCore/style/StyleResolver.cpp:199 > + m_keyframesRuleMap.set(animationName.impl(), WTFMove(rule)); Why does this map use AtomStringImpl* as a key instead of AtomString? Created attachment 450522 [details]
Patch for landing
Comment on attachment 450521 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450521&action=review > Source/WebCore/style/StyleResolver.cpp:198 > + AtomString animationName(rule->name()); This is probably not needed, rule->name() is an AtomString (In reply to Antti Koivisto from comment #8) > Comment on attachment 450521 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=450521&action=review > > > Source/WebCore/style/StyleResolver.cpp:198 > > + AtomString animationName(rule->name()); > > This is probably not needed, rule->name() is an AtomString I have no idea, but I'll look into changing that in a followup patch. Committed r288882 (246634@main): <https://commits.webkit.org/246634@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 450522 [details]. Will address refactor comments in bug 235962. The new WPT test landed in https://github.com/web-platform-tests/wpt/pull/32641. |