aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/values/animated/color.rs10
-rw-r--r--components/style/values/generics/color.rs2
2 files changed, 1 insertions, 11 deletions
diff --git a/components/style/values/animated/color.rs b/components/style/values/animated/color.rs
index 6a82896d62b..1b01a86457a 100644
--- a/components/style/values/animated/color.rs
+++ b/components/style/values/animated/color.rs
@@ -92,16 +92,6 @@ impl ComputeSquaredDistance for RGBA {
}
}
-impl Animate for ComplexColorRatios {
- #[inline]
- fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()> {
- let bg = self.bg.animate(&other.bg, procedure)?;
- let fg = self.fg.animate(&other.fg, procedure)?;
-
- Ok(ComplexColorRatios { bg, fg })
- }
-}
-
/// An animated value for `<color>`.
pub type Color = GenericColor<RGBA>;
diff --git a/components/style/values/generics/color.rs b/components/style/values/generics/color.rs
index 693803ad5fd..e84bd690c7c 100644
--- a/components/style/values/generics/color.rs
+++ b/components/style/values/generics/color.rs
@@ -6,7 +6,7 @@
/// Ratios representing the contribution of color and currentcolor to
/// the final color value.
-#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToAnimatedValue)]
+#[derive(Animate, Clone, Copy, Debug, MallocSizeOf, PartialEq, ToAnimatedValue)]
pub struct ComplexColorRatios {
/// Numeric color contribution.
pub bg: f32,