mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Rename animatable to animation_type.
animation_type takes following values: animation_type="none" for non-animatable properties animation_type="normal" for animatable properties animation_type="discrete" for animatable but discrete type of animations We use string value to distinguish the case where no animation_type is specified. animation_type="discrete" will be used in a subsequent patch to make a property animatable as discrete type.
This commit is contained in:
parent
3beaa8d2e9
commit
03d354afba
24 changed files with 251 additions and 246 deletions
|
@ -17,51 +17,51 @@
|
|||
${helpers.single_keyword("text-anchor",
|
||||
"start middle end",
|
||||
products="gecko",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG/text.html#TextAnchorProperty")}
|
||||
|
||||
// Section 11 - Painting: Filling, Stroking and Marker Symbols
|
||||
${helpers.single_keyword("color-interpolation",
|
||||
"srgb auto linearrgb",
|
||||
products="gecko",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationProperty")}
|
||||
|
||||
${helpers.single_keyword("color-interpolation-filters", "linearrgb auto srgb",
|
||||
products="gecko",
|
||||
gecko_constant_prefix="NS_STYLE_COLOR_INTERPOLATION",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#ColorInterpolationFiltersProperty")}
|
||||
|
||||
${helpers.predefined_type(
|
||||
"fill", "SVGPaint",
|
||||
"::values::computed::SVGPaint::black()",
|
||||
products="gecko",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
boxed=True,
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#SpecifyingFillPaint")}
|
||||
|
||||
${helpers.predefined_type("fill-opacity", "Opacity", "1.0",
|
||||
products="gecko", animatable=False,
|
||||
products="gecko", animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#FillOpacityProperty")}
|
||||
|
||||
${helpers.single_keyword("fill-rule", "nonzero evenodd",
|
||||
gecko_enum_prefix="StyleFillRule",
|
||||
gecko_inexhaustive=True,
|
||||
products="gecko", animatable=False,
|
||||
products="gecko", animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#FillRuleProperty")}
|
||||
|
||||
${helpers.single_keyword("shape-rendering",
|
||||
"auto optimizespeed crispedges geometricprecision",
|
||||
products="gecko",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#ShapeRenderingProperty")}
|
||||
|
||||
${helpers.predefined_type(
|
||||
"stroke", "SVGPaint",
|
||||
"Default::default()",
|
||||
products="gecko",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
boxed=True,
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#SpecifyingStrokePaint")}
|
||||
|
||||
|
@ -70,26 +70,26 @@ ${helpers.predefined_type(
|
|||
"computed::LengthOrPercentage::one()",
|
||||
"parse_numbers_are_pixels_non_negative",
|
||||
products="gecko",
|
||||
animatable=True,
|
||||
animation_type="normal",
|
||||
needs_context=False,
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#StrokeWidth")}
|
||||
|
||||
${helpers.single_keyword("stroke-linecap", "butt round square",
|
||||
products="gecko", animatable=False,
|
||||
products="gecko", animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#StrokeLinecapProperty")}
|
||||
|
||||
${helpers.single_keyword("stroke-linejoin", "miter round bevel",
|
||||
products="gecko", animatable=False,
|
||||
products="gecko", animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#StrokeLinejoinProperty")}
|
||||
|
||||
${helpers.predefined_type("stroke-miterlimit", "Number", "4.0",
|
||||
"parse_at_least_one", products="gecko",
|
||||
needs_context=False,
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#StrokeMiterlimitProperty")}
|
||||
|
||||
${helpers.predefined_type("stroke-opacity", "Opacity", "1.0",
|
||||
products="gecko", animatable=False,
|
||||
products="gecko", animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/painting.html#StrokeOpacityProperty")}
|
||||
|
||||
${helpers.predefined_type("stroke-dasharray",
|
||||
|
@ -98,7 +98,7 @@ ${helpers.predefined_type("stroke-dasharray",
|
|||
"parse_non_negative",
|
||||
vector="True",
|
||||
products="gecko",
|
||||
animatable="False",
|
||||
animation_type="none",
|
||||
space_separated_allowed="True",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#StrokeDashing")}
|
||||
|
||||
|
@ -107,7 +107,7 @@ ${helpers.predefined_type(
|
|||
"computed::LengthOrPercentage::zero()",
|
||||
"parse_numbers_are_pixels",
|
||||
products="gecko",
|
||||
animatable=True,
|
||||
animation_type="normal",
|
||||
needs_context=False,
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#StrokeDashing")}
|
||||
|
||||
|
@ -116,26 +116,26 @@ ${helpers.single_keyword("clip-rule", "nonzero evenodd",
|
|||
products="gecko",
|
||||
gecko_enum_prefix="StyleFillRule",
|
||||
gecko_inexhaustive=True,
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG11/masking.html#ClipRuleProperty")}
|
||||
|
||||
${helpers.predefined_type("marker-start", "UrlOrNone", "Either::Second(None_)",
|
||||
products="gecko",
|
||||
animatable="False",
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
||||
|
||||
${helpers.predefined_type("marker-mid", "UrlOrNone", "Either::Second(None_)",
|
||||
products="gecko",
|
||||
animatable="False",
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
||||
|
||||
${helpers.predefined_type("marker-end", "UrlOrNone", "Either::Second(None_)",
|
||||
products="gecko",
|
||||
animatable="False",
|
||||
animation_type="none",
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#VertexMarkerProperties")}
|
||||
|
||||
<%helpers:longhand name="paint-order"
|
||||
animatable="False"
|
||||
animation_type="none"
|
||||
products="gecko"
|
||||
spec="https://www.w3.org/TR/SVG2/painting.html#PaintOrder">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue