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

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

Issue 468543002: Revert refactoring of CSSProperty .in files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/build/scripts/make_css_property_names.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 {% for flag, function_name in switches %}
9
10 bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property)
11 {
12 switch(property) {
13 case CSSPropertyInvalid:
14 ASSERT_NOT_REACHED();
15 return false;
16 {% for property_id, property in properties.items() if property[flag] %}
17 case {{property_id}}:
18 {% endfor %}
19 return true;
20 default:
21 return false;
22 }
23 }
24 {% endfor %}
25
26 } // namespace blink
OLDNEW
« no previous file with comments | « Source/build/scripts/make_css_property_names.py ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698