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

Unified Diff: Source/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl

Issue 236673002: Simplify whitespace handling in build/ Jinja templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more FIXME Created 6 years, 8 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/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
diff --git a/Source/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl b/Source/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
index 587a7ea537631303a8eb8af1c3dfcdced0ef986b..25566d4385eb54113b6d881ec50f358acd5cac7a 100644
--- a/Source/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
+++ b/Source/build/scripts/templates/RuntimeEnabledFeatures.cpp.tmpl
@@ -1,24 +1,26 @@
-{% from "macros.tmpl" import wrap_with_condition, license -%}
+{% from "macros.tmpl" import wrap_with_condition, license %}
{{ license() }}
#include "config.h"
#include "RuntimeEnabledFeatures.h"
namespace WebCore {
+{# FIXME: remove excess blank line #}
{% for feature_set in feature_sets %}
+
void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool enable)
{
-{%- for feature in features if feature.status == feature_set %}
+{% for feature in features if feature.status == feature_set %}
set{{feature.name}}Enabled(enable);
-{%- endfor %}
+{% endfor %}
}
{% endfor %}
-{%- for feature in features if not feature.custom %}
-{%- call wrap_with_condition(feature.condition) %}
+{% for feature in features if not feature.custom %}
+{% call wrap_with_condition(feature.condition) %}
bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.status == 'stable' else 'false'}};
-{%- endcall %}
-{%- endfor %}
+{% endcall %}
+{% endfor %}
} // namespace WebCore
« no previous file with comments | « Source/build/scripts/templates/MediaFeatures.h.tmpl ('k') | Source/build/scripts/templates/RuntimeEnabledFeatures.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698