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..c20c9789c9363ea9ada5e92929e1fc3d2da7c07d 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,18 @@ 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: |
+ NOTREACHED(); |
+ return 0; |
+ } |
+} |
+ |
bool CSSPropertyMetadata::isEnabledProperty(CSSPropertyID unresolvedProperty) { |
CSSPropertyID property = resolveCSSPropertyID(unresolvedProperty); |
static std::bitset<numCSSProperties>* enabledProperties = nullptr; |