| Index: third_party/WebKit/Source/bindings/templates/constants.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/bindings/templates/constants.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/constants.cpp.tmpl
|
| index 40b7bc288e8e4de3ebd29fe3455ea1d66eb1fa53..2bde91241c74efdd1964e482318a9904bbf7774b 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/constants.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/bindings/templates/constants.cpp.tmpl
|
| @@ -2,10 +2,10 @@
|
| {% macro constant_getter_callback(constant) %}
|
| void {{constant.name}}ConstantGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) {
|
| {% if constant.deprecate_as %}
|
| - Deprecation::countDeprecation(currentExecutionContext(info.GetIsolate()), UseCounter::{{constant.deprecate_as}});
|
| + Deprecation::countDeprecation(currentExecutionContext(info.GetIsolate()), UseCounter::k{{constant.deprecate_as}});
|
| {% endif %}
|
| {% if constant.measure_as %}
|
| - UseCounter::count(currentExecutionContext(info.GetIsolate()), UseCounter::{{constant.measure_as('ConstantGetter')}});
|
| + UseCounter::count(currentExecutionContext(info.GetIsolate()), UseCounter::k{{constant.measure_as('ConstantGetter')}});
|
| {% endif %}
|
| {% if constant.idl_type in ('Double', 'Float') %}
|
| v8SetReturnValue(info, {{constant.value}});
|
| @@ -63,5 +63,5 @@ static_assert({{constant.value}} == {{constant_cpp_class}}::{{constant.reflected
|
| {# 'Short', 'Long' etc. #}
|
| {% set value = '%s, 0' % constant.value %}
|
| {% endif %}
|
| -{"{{constant.name}}", {{value}}, V8DOMConfiguration::ConstantType{{constant.idl_type}}}
|
| +{"{{constant.name}}", {{value}}, V8DOMConfiguration::kConstantType{{constant.idl_type}}}
|
| {%- endmacro %}
|
|
|