| 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 14e9f2de9e5b05adacb5e039bf6e9f08b3816389..4c148b4789f44eb5f6ec1f00123f9f0fb2e4e48f 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| @@ -94,13 +94,6 @@ def attribute_context(interface, attribute):
|
| if cached_attribute_validation_method or keep_alive_for_gc:
|
| includes.add('bindings/core/v8/V8HiddenValue.h')
|
|
|
| - if 'RuntimeEnabled' in extended_attributes:
|
| - includes.add('platform/RuntimeEnabledFeatures.h')
|
| -
|
| - if 'OriginTrialEnabled' in extended_attributes:
|
| - includes.add('core/inspector/ConsoleMessage.h')
|
| - includes.add('core/origin_trials/OriginTrials.h')
|
| -
|
| context = {
|
| 'access_control_list': access_control_list(interface, attribute),
|
| 'activity_logging_world_list_for_getter': v8_utilities.activity_logging_world_list(attribute, 'Getter'), # [ActivityLogging]
|
| @@ -120,7 +113,6 @@ def attribute_context(interface, attribute):
|
| 'has_custom_setter': has_custom_setter(attribute),
|
| 'has_setter': has_setter(interface, attribute),
|
| 'idl_type': str(idl_type), # need trailing [] on array for Dictionary::ConversionContext::setConversionType
|
| - 'is_origin_trial_enabled': v8_utilities.origin_trial_enabled_function(attribute) or v8_utilities.origin_trial_enabled_function(interface), # [OriginTrialEnabled]
|
| 'is_call_with_execution_context': has_extended_attribute_value(attribute, 'CallWith', 'ExecutionContext'),
|
| 'is_call_with_script_state': has_extended_attribute_value(attribute, 'CallWith', 'ScriptState'),
|
| 'is_check_security_for_receiver': is_check_security_for_receiver,
|
| @@ -149,9 +141,7 @@ def attribute_context(interface, attribute):
|
| 'on_instance': v8_utilities.on_instance(interface, attribute),
|
| 'on_interface': v8_utilities.on_interface(interface, attribute),
|
| 'on_prototype': v8_utilities.on_prototype(interface, attribute),
|
| - 'origin_trial_enabled': v8_utilities.origin_trial_enabled_function(attribute), # [OriginTrialEnabled]
|
| - 'origin_trial_enabled_per_interface': v8_utilities.origin_trial_enabled_function(interface), # [OriginTrialEnabled]
|
| - 'origin_trial_name': extended_attributes.get('OriginTrialEnabled'), # [OriginTrialEnabled]
|
| + 'origin_trial_enabled_function': v8_utilities.origin_trial_enabled_function_name(attribute, interface), # [OriginTrialEnabled]
|
| 'use_output_parameter_for_result': idl_type.use_output_parameter_for_result,
|
| 'measure_as': v8_utilities.measure_as(attribute, interface), # [MeasureAs]
|
| 'name': attribute.name,
|
| @@ -533,4 +523,4 @@ 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'] or context['origin_trial_name']
|
| + context['needs_constructor_getter_callback'] = context['measure_as'] or context['deprecate_as'] or context['origin_trial_enabled_function'] # TODO(chasej): Should/can this be true when OriginTrialEnabled is inherited from containing interface?
|
|
|