aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 092938b8797..8fcb298880c 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -208,15 +208,15 @@ pub struct Animation {
/// A description of the property animation that is occurring.
pub property_animation: PropertyAnimation,
/// The start time of the animation, as returned by `time::precise_time_s()`.
- pub start_time: f32,
+ pub start_time: f64,
/// The end time of the animation, as returned by `time::precise_time_s()`.
- pub end_time: f32,
+ pub end_time: f64,
}
impl Animation {
/// Returns the duration of this animation in seconds.
#[inline]
- pub fn duration(&self) -> f32 {
+ pub fn duration(&self) -> f64 {
self.end_time - self.start_time
}
}