aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_interface.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-05-05 09:11:30 -0500
committerbors-servo <metajack+bors@gmail.com>2015-05-05 09:11:30 -0500
commit49aed6555dbc008c1a378c5cbb303f5467232b6b (patch)
tree9146cdd7126ead59c57cacbaa04eda0f16761f65 /components/script/layout_interface.rs
parent7b87085c1880c60aa3be5b3ec4572a0d93fd5537 (diff)
parentef8edd4e87aeb3cc71dfd9da2f69437080f5410e (diff)
downloadservo-49aed6555dbc008c1a378c5cbb303f5467232b6b.tar.gz
servo-49aed6555dbc008c1a378c5cbb303f5467232b6b.zip
Auto merge of #5935 - servo:rustup_2015-04-25, r=Ms2ger
r? everybody <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5935) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r--components/script/layout_interface.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs
index 4aa66eb452d..34d21e7e788 100644
--- a/components/script/layout_interface.rs
+++ b/components/script/layout_interface.rs
@@ -16,7 +16,6 @@ use profile_traits::mem::{Reporter, ReportsChan};
use script_traits::{ScriptControlChan, OpaqueScriptLayoutChannel, UntrustedNodeAddress};
use std::any::Any;
use std::sync::mpsc::{channel, Receiver, Sender};
-use std::boxed::BoxAny;
use style::animation::PropertyAnimation;
use style::media_queries::MediaQueryList;
use style::stylesheets::Stylesheet;
@@ -88,7 +87,7 @@ pub struct HitTestResponse(pub UntrustedNodeAddress);
pub struct MouseOverResponse(pub Vec<UntrustedNodeAddress>);
/// Why we're doing reflow.
-#[derive(PartialEq, Copy, Debug)]
+#[derive(PartialEq, Copy, Clone, Debug)]
pub enum ReflowGoal {
/// We're reflowing in order to send a display list to the screen.
ForDisplay,
@@ -185,15 +184,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: f64,
+ pub start_time: f32,
/// The end time of the animation, as returned by `time::precise_time_s()`.
- pub end_time: f64,
+ pub end_time: f32,
}
impl Animation {
/// Returns the duration of this animation in seconds.
#[inline]
- pub fn duration(&self) -> f64 {
+ pub fn duration(&self) -> f32 {
self.end_time - self.start_time
}
}