style: Part 2: Hook @scroll-timeline rule into style system

We add scroll-timeline rule into the stylesheet rule type, and add a new
perference to protect it: layout.css.scroll-linked-animations.enabled.

We will use this perference for animation-timeline property as well.

Differential Revision: https://phabricator.services.mozilla.com/D125765
This commit is contained in:
Boris Chiou 2023-05-27 07:54:25 +02:00 committed by Oriol Brufau
parent 111c8d616f
commit bb703e303d
6 changed files with 57 additions and 11 deletions

View file

@ -543,6 +543,7 @@ impl StylesheetInvalidationSet {
FontFeatureValues(..) |
FontFace(..) |
Keyframes(..) |
ScrollTimeline(..) |
Style(..) => {
if is_generic_change {
// TODO(emilio): We need to do this for selector / keyframe
@ -618,6 +619,10 @@ impl StylesheetInvalidationSet {
// existing elements.
}
},
ScrollTimeline(..) => {
// TODO: Bug 1676784: check if animation-timeline name is referenced.
// Now we do nothing.
},
CounterStyle(..) | Page(..) | Viewport(..) | FontFeatureValues(..) => {
debug!(
" > Found unsupported rule, marking the whole subtree \