Title: [240879] trunk/Source/WebKit
- Revision
- 240879
- Author
- jer.no...@apple.com
- Date
- 2019-02-01 14:49:46 -0800 (Fri, 01 Feb 2019)
Log Message
Unreviewed build fix; Respect the 'condition:' field in the WebPreferences.yaml when generating
WebPreferencesStoreDefaultsMap.cpp.
* page/SettingsBase.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (240878 => 240879)
--- trunk/Source/WebKit/ChangeLog 2019-02-01 22:47:19 UTC (rev 240878)
+++ trunk/Source/WebKit/ChangeLog 2019-02-01 22:49:46 UTC (rev 240879)
@@ -1,3 +1,10 @@
+2019-02-01 Jer Noble <jer.no...@apple.com>
+
+ Unreviewed build fix; Respect the 'condition:' field in the WebPreferences.yaml when generating
+ WebPreferencesStoreDefaultsMap.cpp.
+
+ * page/SettingsBase.h:
+
2019-02-01 Antoine Quint <grao...@apple.com>
Dispatch pointercancel events when content is panned or zoomed on iOS
Modified: trunk/Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb (240878 => 240879)
--- trunk/Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb 2019-02-01 22:47:19 UTC (rev 240878)
+++ trunk/Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb 2019-02-01 22:49:46 UTC (rev 240879)
@@ -48,8 +48,14 @@
static NeverDestroyed<ValueMap> defaults;
if (defaults.get().isEmpty()) {
<%- for @pref in @preferences do -%>
+<%- if @pref.condition -%>
+#if <%= @pref.condition %>
+<%- end -%>
defaults.get().set(WebPreferencesKey::<%= @pref.nameLower %>Key(), Value(<%= @pref.type %>(<%= @pref.defaultValue %>)));
+<%- if @pref.condition -%>
+#endif
<%- end -%>
+<%- end -%>
}
return defaults;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes