mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
c98b362e65
commit
d37b5c3553
1 changed files with 1 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue