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

@ -2285,6 +2285,10 @@ impl CascadeData {
}
},
#[cfg(feature = "gecko")]
CssRule::ScrollTimeline(..) => {
// TODO: Bug 1676784: set the timeline into animation.
}
#[cfg(feature = "gecko")]
CssRule::FontFace(ref rule) => {
self.extra_data.add_font_face(rule);
},
@ -2553,6 +2557,7 @@ impl CascadeData {
CssRule::CounterStyle(..) |
CssRule::Supports(..) |
CssRule::Keyframes(..) |
CssRule::ScrollTimeline(..) |
CssRule::Page(..) |
CssRule::Viewport(..) |
CssRule::Document(..) |