Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/scripts/v8_interface.py |
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_interface.py b/third_party/WebKit/Source/bindings/scripts/v8_interface.py |
| index 301010363d843c2d835df59ab31e5a5340182350..3c82eee53e88e3b02ccb73e965bda4bdeaf94780 100644 |
| --- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py |
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py |
| @@ -198,6 +198,11 @@ def interface_context(interface, interfaces): |
| is_global = ('PrimaryGlobal' in extended_attributes or |
| 'Global' in extended_attributes) |
| + # [ImmutablePrototype] |
| + # TODO(littledan): Is it possible to deduce this based on inheritance, |
| + # as in the WebIDL spec? |
|
haraken
2016/11/04 02:28:56
Then this comment doesn't make sense, right? We ju
Dan Ehrenberg
2016/11/04 16:04:57
There are a number of things that have ImmutablePr
|
| + is_immutable_prototype = is_global or 'ImmutablePrototype' in extended_attributes |
| + |
| # [SetWrapperReferenceFrom] |
| set_wrapper_reference_from = extended_attributes.get('SetWrapperReferenceFrom') |
| if set_wrapper_reference_from: |
| @@ -258,6 +263,7 @@ def interface_context(interface, interfaces): |
| 'is_event_target': is_event_target, |
| 'is_exception': interface.is_exception, |
| 'is_global': is_global, |
| + 'is_immutable_prototype': is_immutable_prototype, |
| 'is_node': inherits_interface(interface.name, 'Node'), |
| 'is_partial': interface.is_partial, |
| 'is_typed_array_type': is_typed_array_type, |