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

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

Issue 204213002: Replace custom EventTarget toNative call with [ToNativeArg] extended attribute Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/bindings/templates/methods.cpp
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
index d9c29e39bf30b0104b32da6d9695a67356f821eb..5260ed9fcdd78cbff06c0d2d7b91864bb2529777 100644
--- a/Source/bindings/templates/methods.cpp
+++ b/Source/bindings/templates/methods.cpp
@@ -166,16 +166,6 @@ for (int i = {{argument.index}}; i < info.Length(); ++i) {
}
{{argument.name}}.append(V8{{argument.idl_type}}::toNative(v8::Handle<v8::Object>::Cast(info[i])));
}
-{# FIXME: remove EventListener special case
- (just for ListenerFindOrCreate/ListenerFindOnly argument) #}
-{% elif argument.idl_type == 'EventListener' and
- interface_name == 'EventTarget' and
- method.name == 'addEventListener' %}
-V8TRYCATCH_VOID(RefPtr<EventListener>, {{argument.name}}, V8EventListenerList::getEventListener(info[{{argument.index}}], false, ListenerFindOrCreate));
-{% elif argument.idl_type == 'EventListener' and
- interface_name == 'EventTarget' and
- method.name == 'removeEventListener' %}
-V8TRYCATCH_VOID(RefPtr<EventListener>, {{argument.name}}, V8EventListenerList::getEventListener(info[{{argument.index}}], false, ListenerFindOnly));
{% else %}
{{argument.v8_value_to_local_cpp_value}};
{% endif %}

Powered by Google App Engine
This is Rietveld 408576698