Chromium Code Reviews| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 | 55 |
| 56 void CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(const CSSProperty ID* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) | 56 void CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(const CSSProperty ID* properties, size_t propertyCount, Vector<CSSPropertyID>& outVector) |
| 57 { | 57 { |
| 58 for (unsigned i = 0; i < propertyCount; i++) { | 58 for (unsigned i = 0; i < propertyCount; i++) { |
| 59 CSSPropertyID property = properties[i]; | 59 CSSPropertyID property = properties[i]; |
| 60 if (isEnabledProperty(property)) | 60 if (isEnabledProperty(property)) |
| 61 outVector.append(property); | 61 outVector.append(property); |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool CSSPropertyMetadata::isDescriptor(CSSPropertyID property) | |
|
Timothy Loh
2016/05/31 03:24:05
let's rename this to isDecriptorOnly (similar to t
| |
| 66 { | |
| 67 return property >= {{descriptors[0].property_id}} && property <= {{descripto rs[-1].property_id}}; | |
| 68 } | |
| 69 | |
| 65 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |