OLD | NEW |
1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
2 {{license()}} | 2 {{license()}} |
3 | 3 |
4 #include "config.h" | |
5 #include "core/css/CSSPropertyMetadata.h" | 4 #include "core/css/CSSPropertyMetadata.h" |
6 | 5 |
7 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 6 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
8 #include "wtf/BitArray.h" | 7 #include "wtf/BitArray.h" |
9 | 8 |
10 namespace blink { | 9 namespace blink { |
11 {% for flag, function_name in switches %} | 10 {% for flag, function_name in switches %} |
12 | 11 |
13 bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property) | 12 bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property) |
14 { | 13 { |
(...skipping 30 matching lines...) Expand all Loading... |
45 void CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(const CSSProperty
ID* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 44 void CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(const CSSProperty
ID* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
46 { | 45 { |
47 for (unsigned i = 0; i < propertyCount; i++) { | 46 for (unsigned i = 0; i < propertyCount; i++) { |
48 CSSPropertyID property = properties[i]; | 47 CSSPropertyID property = properties[i]; |
49 if (isEnabledProperty(property)) | 48 if (isEnabledProperty(property)) |
50 outVector.append(property); | 49 outVector.append(property); |
51 } | 50 } |
52 } | 51 } |
53 | 52 |
54 } // namespace blink | 53 } // namespace blink |
OLD | NEW |