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 %} |