| OLD | NEW |
| 1 {% from "macros.tmpl" import wrap_with_condition, license -%} | 1 {% from "macros.tmpl" import wrap_with_condition, license -%} |
| 2 {{ license() }} | 2 {{ license() }} |
| 3 | 3 |
| 4 #include "config.h" | 4 #include "config.h" |
| 5 #include "RuntimeEnabledFeatures.h" | 5 #include "RuntimeEnabledFeatures.h" |
| 6 | 6 |
| 7 namespace WebCore { | 7 namespace WebCore { |
| 8 | 8 |
| 9 {% for feature_set in feature_sets %} | 9 {% for feature_set in feature_sets %} |
| 10 void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool e
nable) | 10 void RuntimeEnabledFeatures::set{{feature_set|capitalize}}FeaturesEnabled(bool e
nable) |
| 11 { | 11 { |
| 12 {%- for feature in features if feature.status == feature_set %} | 12 {%- for feature in features if feature.status == feature_set %} |
| 13 set{{feature.name}}Enabled(enable); | 13 set{{feature.name}}Enabled(enable); |
| 14 {%- endfor %} | 14 {%- endfor %} |
| 15 } | 15 } |
| 16 {% endfor %} | 16 {% endfor %} |
| 17 | 17 |
| 18 {%- for feature in features if not feature.custom %} | 18 {%- for feature in features if not feature.custom %} |
| 19 {%- call wrap_with_condition(feature.condition) %} | 19 {%- call wrap_with_condition(feature.condition) %} |
| 20 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = false; | 20 bool RuntimeEnabledFeatures::is{{feature.name}}Enabled = false; |
| 21 {%- endcall %} | 21 {%- endcall %} |
| 22 {%- endfor %} | 22 {%- endfor %} |
| 23 | 23 |
| 24 } // namespace WebCore | 24 } // namespace WebCore |
| 25 | 25 |
| OLD | NEW |