Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-11-15 22:41:57 +01:00 committed by Martin Robinson
parent 3390b77281
commit 9a6b46aebd

View file

@ -2974,12 +2974,14 @@ pub mod style_structs {
/// Returns whether there is any named progress timeline specified with /// Returns whether there is any named progress timeline specified with
/// scroll-timeline-name other than `none`. /// scroll-timeline-name other than `none`.
#[cfg(feature = "gecko")]
pub fn specifies_scroll_timelines(&self) -> bool { pub fn specifies_scroll_timelines(&self) -> bool {
self.scroll_timeline_name_iter().any(|name| !name.is_none()) self.scroll_timeline_name_iter().any(|name| !name.is_none())
} }
/// Returns whether there is any named progress timeline specified with /// Returns whether there is any named progress timeline specified with
/// view-timeline-name other than `none`. /// view-timeline-name other than `none`.
#[cfg(feature = "gecko")]
pub fn specifies_view_timelines(&self) -> bool { pub fn specifies_view_timelines(&self) -> bool {
self.view_timeline_name_iter().any(|name| !name.is_none()) self.view_timeline_name_iter().any(|name| !name.is_none())
} }