| Index: Source/bindings/templates/attributes.cpp
|
| diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp
|
| index 0cd34be6b84c5db36644981eb38a9f3fdd019a39..2dec5523cfd7951b39488b61fb10a70efff217d6 100644
|
| --- a/Source/bindings/templates/attributes.cpp
|
| +++ b/Source/bindings/templates/attributes.cpp
|
| @@ -182,6 +182,24 @@ v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info
|
| {% endfilter %}
|
| {% endmacro %}
|
|
|
| +{##############################################################################}
|
| +{% macro attribute_constructor_callback(attribute, world_suffix) %}
|
| +{% filter conditional(attribute.conditional_string) %}
|
| +static void {{attribute.name}}ConstructorGetterCallback{{world_suffix}}(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
|
| +{
|
| + TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
|
| + {% if attribute.deprecate_as %}
|
| + UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::{{attribute.deprecate_as}});
|
| + {% endif %}
|
| + {% if attribute.measure_as %}
|
| + UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{attribute.measure_as}});
|
| + {% endif %}
|
| + {{cpp_class}}V8Internal::{{cpp_class}}ConstructorGetter{{world_suffix}}(name, info);
|
| + TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
|
| +}
|
| +{% endfilter %}
|
| +{% endmacro %}
|
| +
|
|
|
| {##############################################################################}
|
| {% macro attribute_setter(attribute, world_suffix) %}
|
|
|