| OLD | NEW |
| 1 {##############################################################################} | 1 {##############################################################################} |
| 2 {% macro attribute_getter(attribute, world_suffix) %} | 2 {% macro attribute_getter(attribute, world_suffix) %} |
| 3 {% filter conditional(attribute.conditional_string) %} | 3 {% filter conditional(attribute.conditional_string) %} |
| 4 static void {{attribute.name}}AttributeGetter{{world_suffix}}( | 4 static void {{attribute.name}}AttributeGetter{{world_suffix}}( |
| 5 {%- if attribute.is_expose_js_accessors %} | 5 {%- if attribute.is_expose_js_accessors %} |
| 6 const v8::FunctionCallbackInfo<v8::Value>& info | 6 const v8::FunctionCallbackInfo<v8::Value>& info |
| 7 {%- else %} | 7 {%- else %} |
| 8 const v8::PropertyCallbackInfo<v8::Value>& info | 8 const v8::PropertyCallbackInfo<v8::Value>& info |
| 9 {%- endif %}) | 9 {%- endif %}) |
| 10 { | 10 { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 {% if attribute.is_expose_js_accessors %} | 196 {% if attribute.is_expose_js_accessors %} |
| 197 v8::Local<v8::Value> jsValue = info[0]; | 197 v8::Local<v8::Value> jsValue = info[0]; |
| 198 {% endif %} | 198 {% endif %} |
| 199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 200 {% if attribute.deprecate_as %} | 200 {% if attribute.deprecate_as %} |
| 201 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{{attribu
te.deprecate_as}}); | 201 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{{attribu
te.deprecate_as}}); |
| 202 {% endif %} | 202 {% endif %} |
| 203 {% if attribute.measure_as %} | 203 {% if attribute.measure_as %} |
| 204 UseCounter::count(activeExecutionContext(), UseCounter::{{attribute.measure_
as}}); | 204 UseCounter::count(activeExecutionContext(), UseCounter::{{attribute.measure_
as}}); |
| 205 {% endif %} | 205 {% endif %} |
| 206 {% if attribute.idl_type == 'Node' %} |
| 207 if (V8DOMWrapper::isWrapperOfType(jsValue, &V8Attr::wrapperTypeInfo)) |
| 208 UseCounter::count(activeExecutionContext(), UseCounter::AttrUsedAsNodePa
rameter); |
| 209 {% endif %} |
| 206 {% if world_suffix in attribute.activity_logging_world_list_for_setter %} | 210 {% if world_suffix in attribute.activity_logging_world_list_for_setter %} |
| 207 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 211 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
| 208 if (contextData && contextData->activityLogger()) { | 212 if (contextData && contextData->activityLogger()) { |
| 209 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 213 v8::Handle<v8::Value> loggerArg[] = { jsValue }; |
| 210 contextData->activityLogger()->log("{{interface_name}}.{{attribute.name}
}", 1, &loggerArg[0], "Setter"); | 214 contextData->activityLogger()->log("{{interface_name}}.{{attribute.name}
}", 1, &loggerArg[0], "Setter"); |
| 211 } | 215 } |
| 212 {% endif %} | 216 {% endif %} |
| 213 {% if attribute.is_reflect %} | 217 {% if attribute.is_reflect %} |
| 214 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 218 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 215 {% endif %} | 219 {% endif %} |
| 216 {% if attribute.has_custom_setter %} | 220 {% if attribute.has_custom_setter %} |
| 217 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(jsValue, info); | 221 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(jsValue, info); |
| 218 {% else %} | 222 {% else %} |
| 219 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(j
sValue, info); | 223 {{cpp_class}}V8Internal::{{attribute.name}}AttributeSetter{{world_suffix}}(j
sValue, info); |
| 220 {% endif %} | 224 {% endif %} |
| 221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 222 } | 226 } |
| 223 {% endfilter %} | 227 {% endfilter %} |
| 224 {% endmacro %} | 228 {% endmacro %} |
| OLD | NEW |