| Index: third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| diff --git a/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| index df2f2f6d0bfe665487c85e3556dbc5ebf12c4c1c..dc486ac5645a973990c2909039b173b7d781f65d 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| @@ -21,12 +21,12 @@ public:
|
| return new InternalRuntimeFlags;
|
| }
|
|
|
| -{#
|
| - Setting after startup does not work for most runtime flags, but we
|
| - could add an option to print setters for ones which do:
|
| + // These are reset between layout tests from Internals::resetToConsistentState
|
| + // using RuntimeEnabledFeatures::Backup.
|
| + {% for feature in standard_features if feature.settable_from_internals %}
|
| void set{{feature.name}}Enabled(bool isEnabled) { RuntimeEnabledFeatures::set{{feature.name}}Enabled(isEnabled); }
|
| - If we do that, we also need to respect Internals::resetToConsistentState.
|
| -#}
|
| + {% endfor %}
|
| +
|
| {% for feature in standard_features %}
|
| bool {{feature.first_lowered_name}}Enabled() { return RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled(); }
|
| {% endfor %}
|
|
|