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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl

Issue 2697953004: Add support for generating external types in ComputedStyleBase. (Closed)
Patch Set: remove unused macro Created 3 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: third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..b5753c26a001eebabd14697eafbff861b33a901b
--- /dev/null
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
@@ -0,0 +1,8 @@
+{% import 'fields/base.tmpl' as base %}
+{% from 'fields/field.tmpl' import decode %}
+{% macro decl_methods(field) %}
+{{base.decl_methods(field)}}
+void {{field.setter_method_name}}({{field.type_name}}&& v) {
+ {{field.name}} = std::move({{decode(field, "v")}});
+}
+{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698