Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / build / scripts / templates / RuntimeEnabledFeatures.cpp.tmpl
index 587a7ea..6350a5c 100644 (file)
@@ -1,5 +1,5 @@
-{% from "macros.tmpl" import wrap_with_condition, license -%}
-{{ license() }}
+{% from 'macros.tmpl' import license %}
+{{license()}}
 
 #include "config.h"
 #include "RuntimeEnabledFeatures.h"
@@ -9,16 +9,16 @@ namespace WebCore {
 {% 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) %}
+{% endfor %}
+{% for feature in features if not feature.custom %}
+{% filter enable_conditional(feature.condition) %}
 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = {{'true' if feature.status == 'stable' else 'false'}};
-{%- endcall %}
-{%- endfor %}
+{% endfilter %}
+{% endfor %}
 
 } // namespace WebCore