| Index: third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
|
| index cc7ea7882e818228d17b6c5809f0dc1957f295c4..3b2ae3d72696084b0343639c0cb371593bca5aff 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
|
| @@ -10,9 +10,9 @@ namespace blink {
|
| {% for flag, function_name in switches %}
|
|
|
| bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property) {
|
| - switch(property) {
|
| + switch (property) {
|
| case CSSPropertyInvalid:
|
| - ASSERT_NOT_REACHED();
|
| + NOTREACHED();
|
| return false;
|
| {% for property_id, property in properties.items() if property[flag] %}
|
| case {{property_id}}:
|
| @@ -27,6 +27,21 @@ bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property) {
|
| }
|
| {% endfor %}
|
|
|
| +char CSSPropertyMetadata::repetitionSeparator(CSSPropertyID property) {
|
| + switch (property) {
|
| + {% for property_id, property in properties.items() if property.separator %}
|
| + case {{property_id}}:
|
| + return '{{property.separator}}';
|
| + {% endfor %}
|
| + default:
|
| + return 0;
|
| + }
|
| +}
|
| +
|
| +bool CSSPropertyMetadata::propertyIsRepeated(CSSPropertyID property) {
|
| + return repetitionSeparator(property) != 0;
|
| +}
|
| +
|
| bool CSSPropertyMetadata::isEnabledProperty(CSSPropertyID unresolvedProperty) {
|
| CSSPropertyID property = resolveCSSPropertyID(unresolvedProperty);
|
| static std::bitset<numCSSProperties>* enabledProperties = nullptr;
|
|
|