| OLD | NEW |
| 1 {% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_loc
al_cpp_value %} | 1 {% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_loc
al_cpp_value %} |
| 2 | 2 |
| 3 {##############################################################################} | 3 {##############################################################################} |
| 4 {% macro attribute_getter(attribute, world_suffix) %} | 4 {% macro attribute_getter(attribute, world_suffix) %} |
| 5 static void {{attribute.name}}AttributeGetter{{world_suffix}}( | 5 static void {{attribute.name}}AttributeGetter{{world_suffix}}( |
| 6 {%- if attribute.is_data_type_property %} | 6 {%- if attribute.is_data_type_property %} |
| 7 const v8::PropertyCallbackInfo<v8::Value>& info | 7 const v8::PropertyCallbackInfo<v8::Value>& info |
| 8 {%- else %} | 8 {%- else %} |
| 9 const v8::FunctionCallbackInfo<v8::Value>& info | 9 const v8::FunctionCallbackInfo<v8::Value>& info |
| 10 {%- endif %}) | 10 {%- endif %}) |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 381 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
| 382 V8PerContextData* contextData = scriptState->perContextData(); | 382 V8PerContextData* contextData = scriptState->perContextData(); |
| 383 {% if attribute.activity_logging_world_check %} | 383 {% if attribute.activity_logging_world_check %} |
| 384 if (scriptState->world().isIsolatedWorld() && contextData && contextData->ac
tivityLogger()) { | 384 if (scriptState->world().isIsolatedWorld() && contextData && contextData->ac
tivityLogger()) { |
| 385 {% else %} | 385 {% else %} |
| 386 if (contextData && contextData->activityLogger()) { | 386 if (contextData && contextData->activityLogger()) { |
| 387 {% endif %} | 387 {% endif %} |
| 388 contextData->activityLogger()->logSetter("{{interface_name}}.{{attribute
.name}}", v8Value); | 388 contextData->activityLogger()->logSetter("{{interface_name}}.{{attribute
.name}}", v8Value); |
| 389 } | 389 } |
| 390 {% endif %} | 390 {% endif %} |
| 391 {% if attribute.is_ce_reactions %} |
| 392 CEReactionsScope ceReactionsScope; |
| 393 {% endif %} |
| 391 {% if attribute.is_custom_element_callbacks or attribute.is_reflect %} | 394 {% if attribute.is_custom_element_callbacks or attribute.is_reflect %} |
| 392 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 395 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 393 {% endif %} | 396 {% endif %} |
| 394 {% if attribute.has_custom_setter %} | 397 {% if attribute.has_custom_setter %} |
| 395 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(v8Value, info); | 398 {{v8_class}}::{{attribute.name}}AttributeSetterCustom(v8Value, info); |
| 396 {% else %} | 399 {% else %} |
| 397 {{cpp_class_or_partial}}V8Internal::{{attribute.name}}AttributeSetter{{world
_suffix}}(v8Value, info); | 400 {{cpp_class_or_partial}}V8Internal::{{attribute.name}}AttributeSetter{{world
_suffix}}(v8Value, info); |
| 398 {% endif %} | 401 {% endif %} |
| 399 } | 402 } |
| 400 {% endmacro %} | 403 {% endmacro %} |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 setter_callback_for_main_world, | 509 setter_callback_for_main_world, |
| 507 wrapper_type_info, | 510 wrapper_type_info, |
| 508 access_control, | 511 access_control, |
| 509 property_attribute, | 512 property_attribute, |
| 510 only_exposed_to_private_script, | 513 only_exposed_to_private_script, |
| 511 property_location(attribute), | 514 property_location(attribute), |
| 512 holder_check, | 515 holder_check, |
| 513 ] %} | 516 ] %} |
| 514 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} | 517 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} |
| 515 {%- endmacro %} | 518 {%- endmacro %} |
| OLD | NEW |