Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / build / scripts / templates / CSSPropertyMetadata.cpp.tmpl
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