From 1e9c118f7f056ad63fd394b592b1663bc2141c93 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Mon, 24 Apr 2017 15:31:38 +0900 Subject: [PATCH] ComputedDistance for IntermediateBoxShadow. --- .../style/properties/helpers/animated_properties.mako.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index f80d0335261..b0f49486742 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -2709,7 +2709,7 @@ impl ComputeDistance for TextShadowList { } } -impl ComputeDistance for BoxShadow { +impl ComputeDistance for IntermediateBoxShadow { #[inline] fn compute_distance(&self, other: &Self) -> Result { self.compute_squared_distance(other).map(|sd| sd.sqrt()) @@ -2729,7 +2729,7 @@ impl ComputeDistance for BoxShadow { } } -impl ComputeDistance for BoxShadowList { +impl ComputeDistance for IntermediateBoxShadowList { #[inline] fn compute_distance(&self, other: &Self) -> Result { self.compute_squared_distance(other).map(|sd| sd.sqrt()) @@ -2738,12 +2738,12 @@ impl ComputeDistance for BoxShadowList { #[inline] fn compute_squared_distance(&self, other: &Self) -> Result { // The inset value must change - let mut zero = BoxShadow { + let mut zero = IntermediateBoxShadow { offset_x: Au(0), offset_y: Au(0), spread_radius: Au(0), blur_radius: Au(0), - color: CSSParserColor::RGBA(RGBA::transparent()), + color: IntermediateColor::IntermediateRGBA(IntermediateRGBA::transparent()), inset: false, };