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

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

Issue 450103005: Add inherited flag to CSSProperties.in (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mark paint-order inherited 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/css/CSSProperties.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {{license()}} 2 {{license()}}
3 3
4 #include "config.h" 4 #include "config.h"
5 #include "core/css/CSSPropertyMetadata.h" 5 #include "core/css/CSSPropertyMetadata.h"
6 6
7 namespace blink { 7 namespace blink {
8 {% for flag, function_name in switches %}
8 9
9 bool CSSPropertyMetadata::isAnimatableProperty(CSSPropertyID property) 10 bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property)
10 { 11 {
11 switch(property) { 12 switch(property) {
12 case CSSPropertyInvalid: 13 case CSSPropertyInvalid:
13 ASSERT_NOT_REACHED(); 14 ASSERT_NOT_REACHED();
14 return false; 15 return false;
15 {% for property_id, property in properties.items() if property.animatable %} 16 {% for property_id, property in properties.items() if property[flag] %}
16 case {{property_id}}: 17 case {{property_id}}:
17 {% endfor %} 18 {% endfor %}
18 return true; 19 return true;
19 default: 20 default:
20 return false; 21 return false;
21 } 22 }
22 } 23 }
24 {% endfor %}
23 25
24 } // namespace blink 26 } // namespace blink
OLDNEW
« no previous file with comments | « Source/build/scripts/make_css_property_metadata.py ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698