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

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

Issue 2693933003: Move field-dependent code in ComputedStyleBase to Jinja macros. (Closed)
Patch Set: Rebase 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
new file mode 100644
index 0000000000000000000000000000000000000000..84c47ab961f6b0e3f8947cac6fb4b66b8621b613
--- /dev/null
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
@@ -0,0 +1,8 @@
+{% macro decl_methods(field) %}
+bool {{field.getter_method_name}}() const {
+ return {{field.name}};
+}
+void {{field.setter_method_name}}() {
+ {{field.name}} = static_cast<unsigned>(true);
+}
+{% endmacro %}
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/fields/keyword.tmpl ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698