mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -12,7 +12,7 @@
|
|||
Method("has_overline", "bool"),
|
||||
Method("has_line_through", "bool")]) %>
|
||||
|
||||
<%helpers:longhand name="text-overflow" animatable="False" boxed="True"
|
||||
<%helpers:longhand name="text-overflow" animation_type="none" boxed="True"
|
||||
spec="https://drafts.csswg.org/css-ui/#propdef-text-overflow">
|
||||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
|
@ -97,13 +97,13 @@
|
|||
|
||||
${helpers.single_keyword("unicode-bidi",
|
||||
"normal embed isolate bidi-override isolate-override plaintext",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-unicode-bidi")}
|
||||
|
||||
// FIXME: This prop should be animatable.
|
||||
<%helpers:longhand name="text-decoration-line"
|
||||
custom_cascade="${product == 'servo'}"
|
||||
animatable="False"
|
||||
animation_type="none"
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-line">
|
||||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
|
@ -219,7 +219,7 @@ ${helpers.single_keyword("unicode-bidi",
|
|||
${helpers.single_keyword("text-decoration-style",
|
||||
"solid double dotted dashed wavy -moz-none",
|
||||
products="gecko",
|
||||
animatable=False,
|
||||
animation_type="none",
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-style")}
|
||||
|
||||
${helpers.predefined_type(
|
||||
|
@ -228,11 +228,11 @@ ${helpers.predefined_type(
|
|||
initial_specified_value="specified::CSSColor::currentcolor()",
|
||||
complex_color=True,
|
||||
products="gecko",
|
||||
animatable=True,
|
||||
animation_type="normal",
|
||||
spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-color")}
|
||||
|
||||
<%helpers:longhand name="initial-letter"
|
||||
animatable="False"
|
||||
animation_type="none"
|
||||
products="none"
|
||||
spec="https://drafts.csswg.org/css-inline/#sizing-drop-initials">
|
||||
use std::fmt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue