mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Further changes required by Servo
This commit is contained in:
parent
3390b77281
commit
9a6b46aebd
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue