|
Add animatable flag to CSSProperties.in
This patch adds the flag 'animatable' to CSSProperties.in, replacing the
existing switch statement in CSSAnimations.cpp. Setting the flag
indicates that the property can be animated by CSS animations and
transitions.
The added code will generate a function in CSSPropertyMetadata, which
will eventually also support functions like isInheritedProperty and
isValidFirstLetterStyleProperty. This means that the individual lines in
CSSProperties.in may start getting a bit long, although a centralized
specification of our supported CSS properties arguably helps developers
add new CSS properties, by reducing the lines they need to add and
adding documentation on what changes need to be made.
BUG= 396992
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180039
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180213
|
Unified diffs |
Side-by-side diffs |
Stats (+216 lines, -237 lines) |
 |
M |
Source/build/scripts/css_properties.py
|
View
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
 |
A |
Source/build/scripts/make_css_property_metadata.py
|
View
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
 |
A |
Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
|
View
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
 |
M |
Source/core/BUILD.gn
|
View
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
 |
M |
Source/core/animation/StringKeyframe.cpp
|
View
|
2 chunks |
+2 lines, -1 line |
0 comments
|
 |
M |
Source/core/animation/css/CSSAnimatableValueFactory.cpp
|
View
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
 |
M |
Source/core/animation/css/CSSAnimations.h
|
View
|
1 chunk |
+0 lines, -1 line |
0 comments
|
 |
M |
Source/core/animation/css/CSSAnimations.cpp
|
View
|
5 chunks |
+4 lines, -118 lines |
0 comments
|
 |
M |
Source/core/core.gyp
|
View
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
 |
M |
Source/core/core_generated.gyp
|
View
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
 |
M |
Source/core/css/CSSProperties.in
|
View
|
11 chunks |
+114 lines, -106 lines |
0 comments
|
 |
A + |
Source/core/css/CSSPropertyMetadata.h
|
View
|
1 chunk |
+5 lines, -7 lines |
0 comments
|
 |
M |
Source/core/css/resolver/AnimatedStyleBuilder.cpp
|
View
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Total messages: 9 (0 generated)
|