Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl

Issue 454423003: Add animatable flag to CSSProperties.in (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/build/scripts/make_css_property_metadata.py ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {% from 'macros.tmpl' import license %}
2 {{license()}}
3
4 #include "config.h"
5 #include "core/css/CSSPropertyMetadata.h"
6
7 namespace blink {
8
9 bool CSSPropertyMetadata::isAnimatableProperty(CSSPropertyID property)
10 {
11 switch(property) {
12 case CSSPropertyInvalid:
13 ASSERT_NOT_REACHED();
14 return false;
15 {% for property_id, property in properties.items() if property.animatable %}
16 case {{property_id}}:
17 {% endfor %}
18 return true;
19 default:
20 return false;
21 }
22 }
23
24 } // namespace blink
OLDNEW
« no previous file with comments | « Source/build/scripts/make_css_property_metadata.py ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698