| OLD | NEW |
| 1 {% from 'macros.tmpl' import license %} | 1 {% from 'macros.tmpl' import license %} |
| 2 {{license()}} | 2 {{license()}} |
| 3 | 3 |
| 4 #include "core/css/CSSPropertyMetadata.h" | 4 #include "core/css/CSSPropertyMetadata.h" |
| 5 | 5 |
| 6 #include "platform/RuntimeEnabledFeatures.h" | 6 #include "platform/RuntimeEnabledFeatures.h" |
| 7 #include <bitset> | 7 #include <bitset> |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 {% for flag, function_name in switches %} | 10 {% for flag, function_name in switches %} |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 {% for property in properties_including_aliases if property.is_internal %} | 58 {% for property in properties_including_aliases if property.is_internal %} |
| 59 enabledProperties->reset({{property.property_id}} - {{first_enum_value}}); | 59 enabledProperties->reset({{property.property_id}} - {{first_enum_value}}); |
| 60 {% endfor %} | 60 {% endfor %} |
| 61 } | 61 } |
| 62 | 62 |
| 63 if (unresolvedProperty >= {{first_enum_value}}) | 63 if (unresolvedProperty >= {{first_enum_value}}) |
| 64 return enabledProperties->test(property - {{first_enum_value}}); | 64 return enabledProperties->test(property - {{first_enum_value}}); |
| 65 | 65 |
| 66 if (unresolvedProperty == CSSPropertyVariable) | 66 if (unresolvedProperty == CSSPropertyVariable) |
| 67 return true; | 67 return true; |
| 68 ASSERT(unresolvedProperty == CSSPropertyApplyAtRule); | 68 DCHECK_EQ(unresolvedProperty, CSSPropertyApplyAtRule); |
| 69 return RuntimeEnabledFeatures::cssApplyAtRulesEnabled(); | 69 return RuntimeEnabledFeatures::cssApplyAtRulesEnabled(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void CSSPropertyMetadata::FilterEnabledCSSPropertiesIntoVector( | 72 void CSSPropertyMetadata::FilterEnabledCSSPropertiesIntoVector( |
| 73 const CSSPropertyID* properties, | 73 const CSSPropertyID* properties, |
| 74 size_t propertyCount, | 74 size_t propertyCount, |
| 75 Vector<CSSPropertyID>& outVector) { | 75 Vector<CSSPropertyID>& outVector) { |
| 76 for (unsigned i = 0; i < propertyCount; i++) { | 76 for (unsigned i = 0; i < propertyCount; i++) { |
| 77 CSSPropertyID property = properties[i]; | 77 CSSPropertyID property = properties[i]; |
| 78 if (IsEnabledProperty(property)) | 78 if (IsEnabledProperty(property)) |
| 79 outVector.push_back(property); | 79 outVector.push_back(property); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| OLD | NEW |