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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.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/monotonic_flag.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
index 84c47ab961f6b0e3f8947cac6fb4b66b8621b613..dfae1505d607526465d4d271b8dbf48b441e635f 100644
--- a/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
@@ -1,8 +1,9 @@
+{% from 'fields/field.tmpl' import encode %}
{% macro decl_methods(field) %}
bool {{field.getter_method_name}}() const {
return {{field.name}};
}
void {{field.setter_method_name}}() {
- {{field.name}} = static_cast<unsigned>(true);
+ {{field.name}} = {{encode(field, "true")}};
}
{% endmacro %}
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698