Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: Source/bindings/scripts/unstable/v8_attributes.py

Issue 140663012: IDL compiler: Window-specific code + Window-only features (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No headers for named constructor attributes Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/scripts/unstable/v8_attributes.py
diff --git a/Source/bindings/scripts/unstable/v8_attributes.py b/Source/bindings/scripts/unstable/v8_attributes.py
index e1376dd08ce84586f0823d7b1458318bbd32d732..1038eb33e1536cf7385135fa2e115b42cc0c6f62 100644
--- a/Source/bindings/scripts/unstable/v8_attributes.py
+++ b/Source/bindings/scripts/unstable/v8_attributes.py
@@ -355,7 +355,8 @@ def scoped_content_attribute_name(attribute):
def setter_callback_name(interface, attribute):
cpp_class_name = cpp_name(interface)
extended_attributes = attribute.extended_attributes
- if ('Replaceable' in extended_attributes or
+ if (('Replaceable' in extended_attributes and
+ 'PutForwards' not in extended_attributes) or
haraken 2014/02/06 07:57:44 I don't fully understand this. Is this intended in
Nils Barth (inactive) 2014/02/06 08:40:14 Yes. I've placed 'Window' if and only if it's actu
is_constructor_attribute(attribute)):
# FIXME: rename to ForceSetAttributeOnThisCallback, since also used for Constructors
return '{0}V8Internal::{0}ReplaceableAttributeSetterCallback'.format(cpp_class_name)
@@ -374,7 +375,8 @@ def access_control_list(attribute):
access_control.append('v8::ALL_CAN_WRITE')
else:
access_control.append('v8::ALL_CAN_READ')
- if not attribute.is_read_only:
+ if (not attribute.is_read_only or
+ 'Replaceable' in extended_attributes):
haraken 2014/02/06 07:57:44 Ditto.
Nils Barth (inactive) 2014/02/06 08:40:14 Ditto: this is general.
access_control.append('v8::ALL_CAN_WRITE')
if 'Unforgeable' in extended_attributes:
access_control.append('v8::PROHIBITS_OVERWRITING')

Powered by Google App Engine
This is Rietveld 408576698