Index: third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
index 6535851e61147d90645e281a66d205d8ea6f9f08..242183be0488a0775816801da25d554cf59b1151 100644 |
--- a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
+++ b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py |
@@ -99,6 +99,7 @@ def attribute_context(interface, attribute): |
'activity_logging_world_list_for_getter': v8_utilities.activity_logging_world_list(attribute, 'Getter'), # [ActivityLogging] |
'activity_logging_world_list_for_setter': v8_utilities.activity_logging_world_list(attribute, 'Setter'), # [ActivityLogging] |
'activity_logging_world_check': v8_utilities.activity_logging_world_check(attribute), # [ActivityLogging] |
+ 'api_experiment_name': v8_utilities.api_experiment_name(attribute), # [APIExperimentEnabled] |
'argument_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True), |
'cached_attribute_validation_method': cached_attribute_validation_method, |
'conditional_string': v8_utilities.conditional_string(attribute), |
@@ -505,7 +506,7 @@ def is_constructor_attribute(attribute): |
def update_constructor_attribute_context(interface, attribute, context): |
- context['needs_constructor_getter_callback'] = context['measure_as'] or context['deprecate_as'] |
+ context['needs_constructor_getter_callback'] = context['measure_as'] or context['deprecate_as'] or context['api_experiment_name'] |
haraken
2015/12/18 02:35:51
Can we remove this now because we've decided to un
Daniel Nishi
2015/12/18 05:11:42
Yes and done.
|
# When the attribute name is the same as the interface name, do not generate |
# callback functions for each attribute and use |
# {{cpp_class}}ConstructorAttributeSetterCallback. Otherwise, generate |