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

Unified Diff: Source/bindings/dart/scripts/templates/interface_base_cpp.template

Issue 400893007: Add Custom Named property getters for cssStyleDeclaration to determine the existence of a property. (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: Created 6 years, 5 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/dart/scripts/templates/interface_base_cpp.template
diff --git a/Source/bindings/dart/scripts/templates/interface_base_cpp.template b/Source/bindings/dart/scripts/templates/interface_base_cpp.template
index 4932bdd111a46bfdc76efa5d5010e90b7302317d..a1acbd199548e538bd6d428c797ff2f803282999 100644
--- a/Source/bindings/dart/scripts/templates/interface_base_cpp.template
+++ b/Source/bindings/dart/scripts/templates/interface_base_cpp.template
@@ -89,6 +89,9 @@ Dart_NativeFunction {{dart_class}}::resolver(Dart_Handle nameHandle, int argumen
{% if dart_class == 'DartDataTransferItemList' %}
{% block indexed_property_getter_resolver %}{% endblock %}
{% endif %}
+ {% if dart_class == 'DartCSSStyleDeclaration' %}
+ {% block named_property_getter_resolver %}{% endblock %}
+ {% endif %}
return 0;
}
@@ -112,6 +115,9 @@ const uint8_t* {{dart_class}}::symbolizer(Dart_NativeFunction nf)
{% for method in methods if not method.suppressed %}
{{generate_symbolizer_body(dart_class, interface_name, method) | indent(4)}}
{% endfor %}
+ {% if dart_class == 'DartCSSStyleDeclaration' %}
+{% block generate_symbolizer_named_property_getter %}{% endblock %}
+ {% endif %}
{% block generate_symbolizer_indexed_property_getter %}{% endblock %}
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698