Skip to content

Commit

Permalink
Don't allow interpolating SVGPaintKind::None.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mantaroh committed Sep 4, 2017
1 parent c98b362 commit d37b5c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/style/values/generics/svg.rs
Expand Up @@ -35,6 +35,7 @@ pub struct SVGPaint<ColorType, UrlPaintServer> {
#[derive(ToAnimatedValue, ToAnimatedZero, ToComputedValue, ToCss)]
pub enum SVGPaintKind<ColorType, UrlPaintServer> {
/// `none`
#[animation(error)]
None,
/// `<color>`
Color(ColorType),
Expand Down

0 comments on commit d37b5c3

Please sign in to comment.