From d37b5c3553a71fe0b54e732284694bee204ae3b5 Mon Sep 17 00:00:00 2001 From: Mantaroh Yoshinaga Date: Mon, 4 Sep 2017 16:11:40 +0900 Subject: [PATCH] Don't allow interpolating SVGPaintKind::None. PR #18103 disallowed interpolation between fill:none and fill:none, but that change was regressed by the refactoring in PR #18239. This patch restores the intended behavior, disabling animation of SVGPaintKind::None. --- components/style/values/generics/svg.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/style/values/generics/svg.rs b/components/style/values/generics/svg.rs index 9b0f19ae4bc..2d743100dc1 100644 --- a/components/style/values/generics/svg.rs +++ b/components/style/values/generics/svg.rs @@ -35,6 +35,7 @@ pub struct SVGPaint { #[derive(ToAnimatedValue, ToAnimatedZero, ToComputedValue, ToCss)] pub enum SVGPaintKind { /// `none` + #[animation(error)] None, /// `` Color(ColorType),