| 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 da3f3371db5b8830659deec390adb32853040910..aec1f7a48731bf76301665a86e1b9c8c2915f3e5 100644
|
| --- a/third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_attributes.py
|
| @@ -286,8 +286,13 @@ def getter_context(interface, attribute, context):
|
| cpp_value, extended_attributes=extended_attributes, script_wrappable='impl',
|
| for_main_world=for_main_world, is_static=attribute.is_static)
|
|
|
| + cpp_value_to_script_wrappable = cpp_value
|
| + if idl_type.is_array_buffer_view_or_typed_array:
|
| + cpp_value_to_script_wrappable += '.view()'
|
| +
|
| context.update({
|
| 'cpp_value': cpp_value,
|
| + 'cpp_value_to_script_wrappable': cpp_value_to_script_wrappable,
|
| 'cpp_value_to_v8_value': idl_type.cpp_value_to_v8_value(
|
| cpp_value=cpp_value, creation_context='holder',
|
| extended_attributes=extended_attributes),
|
|
|