| Index: sky/engine/bindings/templates/interface.cpp
|
| diff --git a/sky/engine/bindings/templates/interface.cpp b/sky/engine/bindings/templates/interface.cpp
|
| index 288a3ad204491a43e5c90935019ca20ba0d2a9c1..bc533f7d4490957e5b94b40b0d82e41ced006378 100644
|
| --- a/sky/engine/bindings/templates/interface.cpp
|
| +++ b/sky/engine/bindings/templates/interface.cpp
|
| @@ -725,17 +725,8 @@ bool initialize{{cpp_class}}({{cpp_class}}Init& eventInit, const Dictionary& opt
|
| if (attribute.is_initialized_by_event_constructor and
|
| not attribute.idl_type == 'any')%}
|
| {% set is_nullable = 'true' if attribute.is_nullable else 'false' %}
|
| - {% if attribute.deprecate_as %}
|
| - if (DictionaryHelper::convert(options, conversionContext.setConversionType("{{attribute.idl_type}}", {{is_nullable}}), "{{attribute.name}}", eventInit.{{attribute.cpp_name}})) {
|
| - if (options.hasProperty("{{attribute.name}}"))
|
| - UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), UseCounter::{{attribute.deprecate_as}});
|
| - } else {
|
| - return false;
|
| - }
|
| - {% else %}
|
| if (!DictionaryHelper::convert(options, conversionContext.setConversionType("{{attribute.idl_type}}", {{is_nullable}}), "{{attribute.name}}", eventInit.{{attribute.cpp_name}}))
|
| return false;
|
| - {% endif %}
|
| {% endfor %}
|
| return true;
|
| }
|
| @@ -750,9 +741,6 @@ bool initialize{{cpp_class}}({{cpp_class}}Init& eventInit, const Dictionary& opt
|
| void {{v8_class}}::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
|
| - {% if measure_as %}
|
| - UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::{{measure_as}});
|
| - {% endif %}
|
| if (!info.IsConstructCall()) {
|
| V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("{{interface_name}}"), info.GetIsolate());
|
| return;
|
|
|