Index: Source/bindings/scripts/v8_interface.py |
diff --git a/Source/bindings/scripts/v8_interface.py b/Source/bindings/scripts/v8_interface.py |
index 249ea0ba9bdb0cf6c41fb8eff6ce4a3a013c7878..f8c477f96d8d38bd6f950c7682eb9b8d2a7a5d83 100644 |
--- a/Source/bindings/scripts/v8_interface.py |
+++ b/Source/bindings/scripts/v8_interface.py |
@@ -1236,11 +1236,14 @@ def property_getter(getter, cpp_arguments): |
idl_type = getter.idl_type |
extended_attributes = getter.extended_attributes |
is_raises_exception = 'RaisesException' in extended_attributes |
+ is_call_with_script_state = v8_utilities.has_extended_attribute_value(getter, 'CallWith', 'ScriptState') |
use_output_parameter_for_result = idl_type.use_output_parameter_for_result |
# FIXME: make more generic, so can use v8_methods.cpp_value |
cpp_method_name = 'impl->%s' % cpp_name(getter) |
+ if is_call_with_script_state: |
+ cpp_arguments.insert(0, 'scriptState') |
if is_raises_exception: |
cpp_arguments.append('exceptionState') |
if use_output_parameter_for_result: |
@@ -1263,6 +1266,7 @@ def property_getter(getter, cpp_arguments): |
'is_enumerable': 'NotEnumerable' not in extended_attributes, |
'is_null_expression': is_null_expression(idl_type), |
'is_raises_exception': is_raises_exception, |
+ 'is_call_with_script_state': is_call_with_script_state, |
Jens Widell
2015/03/05 07:18:07
Nit: Move up a bit; the list should be sorted.
|
'name': cpp_name(getter), |
'use_output_parameter_for_result': use_output_parameter_for_result, |
'v8_set_return_value': idl_type.v8_set_return_value('result', extended_attributes=extended_attributes, script_wrappable='impl', release=idl_type.release), |
@@ -1276,6 +1280,7 @@ def property_setter(setter, interface): |
idl_type = setter.arguments[1].idl_type |
extended_attributes = setter.extended_attributes |
is_raises_exception = 'RaisesException' in extended_attributes |
+ is_call_with_script_state = v8_utilities.has_extended_attribute_value(setter, 'CallWith', 'ScriptState') |
# [TypeChecking=Interface] / [LegacyInterfaceTypeChecking] |
has_type_checking_interface = ( |
@@ -1290,6 +1295,7 @@ def property_setter(setter, interface): |
'is_custom': 'Custom' in extended_attributes, |
'is_nullable': idl_type.is_nullable, |
'is_raises_exception': is_raises_exception, |
+ 'is_call_with_script_state': is_call_with_script_state, |
Jens Widell
2015/03/05 07:18:06
Nit: Move up a bit; the list should be sorted.
|
'name': cpp_name(setter), |
'v8_value_to_local_cpp_value': idl_type.v8_value_to_local_cpp_value( |
extended_attributes, 'v8Value', 'propertyValue'), |
@@ -1302,8 +1308,10 @@ def property_deleter(deleter): |
idl_type = deleter.idl_type |
extended_attributes = deleter.extended_attributes |
+ is_call_with_script_state = v8_utilities.has_extended_attribute_value(deleter, 'CallWith', 'ScriptState') |
return { |
'is_custom': 'Custom' in extended_attributes, |
'is_raises_exception': 'RaisesException' in extended_attributes, |
+ 'is_call_with_script_state': is_call_with_script_state, |
Jens Widell
2015/03/05 07:18:06
Nit: Move up a bit; the list should be sorted.
|
'name': cpp_name(deleter), |
} |