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

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

Issue 102143003: IDL compiler: [ImplementedAs] for [InitializedByEventConstructor] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged Created 7 years 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 9d3067bbb6e557573c8f5f6d2ebd38025df61faa..aabd1ed00a4c24d04ed455a3ad58807233b3ff62 100644
--- a/Source/bindings/templates/interface.cpp
+++ b/Source/bindings/templates/interface.cpp
@@ -296,14 +296,14 @@ bool initialize{{cpp_class}}({{cpp_class}}Init& eventInit, const Dictionary& opt
{# FIXME: special-case any #}
{# FIXME: implement withPropertyAttributes #}
{% if attribute.deprecate_as %}
- if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.name}})) {
+ if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.cpp_name}})) {
if (options.hasProperty("{{attribute.name}}"))
UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{{attribute.deprecate_as}});
} else {
return false;
}
{% else %}
- if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.name}}))
+ if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{attribute.cpp_name}}))
return false;
{% endif %}
{% endfor %}
« no previous file with comments | « Source/bindings/scripts/unstable/v8_attributes.py ('k') | Source/bindings/tests/idls/TestInterfaceEventConstructor.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698