mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -6,7 +6,7 @@
|
|||
|
||||
<% data.new_style_struct("List", inherited=True) %>
|
||||
|
||||
${helpers.single_keyword("list-style-position", "outside inside", animatable=False,
|
||||
${helpers.single_keyword("list-style-position", "outside inside", animation_type="none",
|
||||
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-position")}
|
||||
|
||||
// TODO(pcwalton): Implement the full set of counter styles per CSS-COUNTER-STYLES [1] 6.1:
|
||||
|
@ -34,14 +34,14 @@ ${helpers.single_keyword("list-style-type", """
|
|||
""",
|
||||
gecko_constant_prefix="NS_STYLE_LIST_STYLE",
|
||||
needs_conversion="True",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-type")}
|
||||
|
||||
${helpers.predefined_type("list-style-image", "UrlOrNone", "Either::Second(None_)",
|
||||
initial_specified_value="Either::Second(None_)", animatable=False,
|
||||
initial_specified_value="Either::Second(None_)", animation_type="none",
|
||||
spec="https://drafts.csswg.org/css-lists/#propdef-list-style-image")}
|
||||
|
||||
<%helpers:longhand name="quotes" animatable="False"
|
||||
<%helpers:longhand name="quotes" animation_type="none"
|
||||
spec="https://drafts.csswg.org/css-content/#propdef-quotes">
|
||||
use cssparser::Token;
|
||||
use std::borrow::Cow;
|
||||
|
@ -118,7 +118,7 @@ ${helpers.predefined_type("list-style-image", "UrlOrNone", "Either::Second(None_
|
|||
${helpers.predefined_type("-moz-image-region",
|
||||
"ClipRectOrAuto",
|
||||
"computed::ClipRectOrAuto::auto()",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
products="gecko",
|
||||
boxed="True",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-region)")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue