| OLD | NEW |
| 1 {% from 'conversions.cpp' import declare_enum_validation_variable, v8_value_to_l
ocal_cpp_value %} | 1 {% from 'utilities.cpp' import declare_enum_validation_variable, v8_value_to_loc
al_cpp_value %} |
| 2 | 2 |
| 3 | 3 |
| 4 {##############################################################################} | 4 {##############################################################################} |
| 5 {% macro attribute_getter(attribute, world_suffix) %} | 5 {% macro attribute_getter(attribute, world_suffix) %} |
| 6 {% filter conditional(attribute.conditional_string) %} | 6 {% filter conditional(attribute.conditional_string) %} |
| 7 static void {{attribute.name}}AttributeGetter{{world_suffix}}( | 7 static void {{attribute.name}}AttributeGetter{{world_suffix}}( |
| 8 {%- if attribute.is_data_type_property %} | 8 {%- if attribute.is_data_type_property %} |
| 9 const v8::PropertyCallbackInfo<v8::Value>& info | 9 const v8::PropertyCallbackInfo<v8::Value>& info |
| 10 {%- else %} | 10 {%- else %} |
| 11 const v8::FunctionCallbackInfo<v8::Value>& info | 11 const v8::FunctionCallbackInfo<v8::Value>& info |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 return false; | 450 return false; |
| 451 | 451 |
| 452 ExceptionState exceptionState(ExceptionState::SetterContext, "{{attribute.na
me}}", "{{cpp_class}}", scriptState->context()->Global(), scriptState->isolate()
); | 452 ExceptionState exceptionState(ExceptionState::SetterContext, "{{attribute.na
me}}", "{{cpp_class}}", scriptState->context()->Global(), scriptState->isolate()
); |
| 453 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "{{cpp_class}}", "{{attribute.name}}", holder, {{attribute.private_s
cript_cpp_value_to_v8_value}}); | 453 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "{{cpp_class}}", "{{attribute.name}}", holder, {{attribute.private_s
cript_cpp_value_to_v8_value}}); |
| 454 } | 454 } |
| 455 {% endmacro %} | 455 {% endmacro %} |
| 456 | 456 |
| 457 | 457 |
| 458 {##############################################################################} | 458 {##############################################################################} |
| 459 {% macro attribute_configuration(attribute) %} | 459 {% macro attribute_configuration(attribute) %} |
| 460 {% from 'conversions.cpp' import property_location %} | 460 {% from 'utilities.cpp' import property_location %} |
| 461 {% if attribute.constructor_type %} | 461 {% if attribute.constructor_type %} |
| 462 {% set getter_callback = | 462 {% set getter_callback = |
| 463 '%sV8Internal::%sConstructorGetterCallback' % (cpp_class_or_partial, attr
ibute.name) | 463 '%sV8Internal::%sConstructorGetterCallback' % (cpp_class_or_partial, attr
ibute.name) |
| 464 if attribute.needs_constructor_getter_callback else | 464 if attribute.needs_constructor_getter_callback else |
| 465 'v8ConstructorAttributeGetter' %} | 465 'v8ConstructorAttributeGetter' %} |
| 466 {% set setter_callback = | 466 {% set setter_callback = |
| 467 '%sV8Internal::%sAttributeSetterCallback' % (cpp_class_or_partial, attrib
ute.name) | 467 '%sV8Internal::%sAttributeSetterCallback' % (cpp_class_or_partial, attrib
ute.name) |
| 468 if attribute.needs_constructor_setter_callback else | 468 if attribute.needs_constructor_setter_callback else |
| 469 '%sV8Internal::%sConstructorAttributeSetterCallback' % (cpp_class_or_part
ial, cpp_class) %} | 469 '%sV8Internal::%sConstructorAttributeSetterCallback' % (cpp_class_or_part
ial, cpp_class) %} |
| 470 {% else %}{# regular attributes #} | 470 {% else %}{# regular attributes #} |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 setter_callback_for_main_world, | 506 setter_callback_for_main_world, |
| 507 wrapper_type_info, | 507 wrapper_type_info, |
| 508 access_control, | 508 access_control, |
| 509 property_attribute, | 509 property_attribute, |
| 510 only_exposed_to_private_script, | 510 only_exposed_to_private_script, |
| 511 property_location(attribute), | 511 property_location(attribute), |
| 512 holder_check, | 512 holder_check, |
| 513 ] %} | 513 ] %} |
| 514 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} | 514 {{'{'}}{{attribute_configuration_list | join(', ')}}{{'}'}} |
| 515 {%- endmacro %} | 515 {%- endmacro %} |
| OLD | NEW |