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.
This commit is contained in:
Mantaroh Yoshinaga 2017-09-04 16:11:40 +09:00
parent c98b362e65
commit d37b5c3553

View file

@ -35,6 +35,7 @@ pub struct SVGPaint<ColorType, UrlPaintServer> {
#[derive(ToAnimatedValue, ToAnimatedZero, ToComputedValue, ToCss)] #[derive(ToAnimatedValue, ToAnimatedZero, ToComputedValue, ToCss)]
pub enum SVGPaintKind<ColorType, UrlPaintServer> { pub enum SVGPaintKind<ColorType, UrlPaintServer> {
/// `none` /// `none`
#[animation(error)]
None, None,
/// `<color>` /// `<color>`
Color(ColorType), Color(ColorType),