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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_interface.py

Issue 1667653002: V8-binding: Use v8::Template::SetNativeDataProperty without setter for [Replaceable]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved the [LenientThis] test to http/tests/. Created 4 years, 9 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: 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 35edaee63b7760b5f65161ff9e53d07ba6b0aabc..c717e7cd759e85018a7e2f55a12d29d840ce897b 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
@@ -302,9 +302,13 @@ def interface_context(interface):
attribute['is_data_type_property'] and
attribute['should_be_exposed_to_script']
for attribute in attributes),
- 'has_constructor_attributes': any(attribute['constructor_type'] for attribute in attributes),
- 'needs_constructor_setter_callback': any(attribute['constructor_type'] == attribute['name'] for attribute in attributes),
- 'has_replaceable_attributes': any(attribute['is_replaceable'] for attribute in attributes),
+ 'has_constructor_attributes': any(
+ attribute['constructor_type']
+ for attribute in attributes),
+ 'has_replaceable_attributes': any(
+ attribute['is_replaceable'] and
+ not attribute['is_data_type_property']
+ for attribute in attributes),
})
# Methods

Powered by Google App Engine
This is Rietveld 408576698