style: Create timeline objects when mutating scroll-timeline property

And so we can lookup the timeline from TimelineCollection.

Differential Revision: https://phabricator.services.mozilla.com/D169273
This commit is contained in:
Boris Chiou 2023-03-07 23:57:55 +00:00 committed by Martin Robinson
parent 532d769e27
commit 3390b77281
4 changed files with 54 additions and 0 deletions

View file

@ -419,6 +419,10 @@ bitflags! {
/// the second animation restyles for the script animations in the case where
/// the display property was changed from 'none' to others.
const DISPLAY_CHANGED_FROM_NONE = structs::UpdateAnimationsTasks_DisplayChangedFromNone;
/// Update CSS named scroll progress timelines.
const SCROLL_TIMELINES = structs::UpdateAnimationsTasks_ScrollTimelines;
/// Update CSS named view progress timelines.
const VIEW_TIMELINES = structs::UpdateAnimationsTasks_ViewTimelines;
}
}