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

Unified Diff: Source/bindings/templates/interface.cpp

Issue 328663003: IDL: restructure logic handling registration of methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/templates/interface.cpp
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
index f90e254bdc07551b936117e7185cf3ba2a24937e..0c46142bef3f85c9765780b52fddefbc1221c24f 100644
--- a/Source/bindings/templates/interface.cpp
+++ b/Source/bindings/templates/interface.cpp
@@ -986,9 +986,10 @@ static void configure{{v8_class}}Template(v8::Handle<v8::FunctionTemplate> funct
{# Needed for legacy support of document.all #}
functionTemplate->InstanceTemplate()->MarkAsUndetectable();
{% endif %}
- {% for method in methods if not method.do_not_check_signature %}
+ {% for method in methods %}
{# install_custom_signature #}
- {% if not method.overload_index or method.overload_index == 1 %}
+ {% if not(method.overloads.do_not_check_signature_any if method.overloads else
Nils Barth (inactive) 2014/06/11 06:28:28 I think this can be: if not((method.overloads and
+ (method.overload_index or method.do_not_check_signature)) %}
{# For overloaded methods, only generate one accessor #}
{% filter conditional(method.conditional_string) %}
{% if method.is_do_not_check_security %}
« Source/bindings/scripts/v8_interface.py ('K') | « Source/bindings/scripts/v8_interface.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698