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

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

Issue 2296573003: binding: Reduces the binary size of binding's generated code. (Closed)
Patch Set: Created 4 years, 4 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 eb9a20ef4d88e65e9e6e6737bc644586f45ceef8..aa6723d214d340475d7859480e1280df5e147fd4 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
@@ -563,15 +563,10 @@ def interface_context(interface):
})
# Conditionally enabled members
- has_conditional_attributes_on_instance = any(
- (attribute['exposed_test'] or attribute['secure_context_test']) and attribute['on_instance']
- for attribute in attributes)
has_conditional_attributes_on_prototype = any(
(attribute['exposed_test'] or attribute['secure_context_test']) and attribute['on_prototype']
for attribute in attributes)
context.update({
- 'has_conditional_attributes_on_instance':
- has_conditional_attributes_on_instance,
'has_conditional_attributes_on_prototype':
has_conditional_attributes_on_prototype,
})
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h ('k') | third_party/WebKit/Source/bindings/templates/interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698