mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Drop the usage of @scroll-timeline from animation builder
@scroll-timeline rule was removed from the spec and wpt, so it's safe to remove this from Gecko. Differential Revision: https://phabricator.services.mozilla.com/D157248
This commit is contained in:
parent
8a63d9e059
commit
4b736595d7
2 changed files with 6 additions and 9 deletions
|
@ -289,7 +289,7 @@ trait PrivateMatchMethods: TElement {
|
|||
|
||||
let old_ui_style = old_style.get_ui();
|
||||
|
||||
let keyframes_or_timeline_could_have_changed = context
|
||||
let keyframes_could_have_changed = context
|
||||
.shared
|
||||
.traversal_flags
|
||||
.contains(TraversalFlags::ForCSSRuleChanges);
|
||||
|
@ -299,9 +299,9 @@ trait PrivateMatchMethods: TElement {
|
|||
// element has or will have CSS animation style regardless of whether
|
||||
// the animation is running or not.
|
||||
//
|
||||
// TODO: We should check which @keyframes/@scroll-timeline were added/changed/deleted and
|
||||
// update only animations corresponding to those @keyframes/@scroll-timeline.
|
||||
if keyframes_or_timeline_could_have_changed {
|
||||
// TODO: We should check which @keyframes were added/changed/deleted and
|
||||
// update only animations corresponding to those @keyframes.
|
||||
if keyframes_could_have_changed {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue