Index: Source/web/WebRuntimeFeatures.cpp |
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp |
index 8c3ae169016cd832c70010c81f8e3044d7d9fe52..f565fee99b47df479fb66ae1a109abaac219cb92 100644 |
--- a/Source/web/WebRuntimeFeatures.cpp |
+++ b/Source/web/WebRuntimeFeatures.cpp |
@@ -377,6 +377,22 @@ bool WebRuntimeFeatures::isHTMLImportsEnabled() |
return RuntimeEnabledFeatures::htmlImportsEnabled(); |
} |
+void WebRuntimeFeatures::enableNavigatorContentUtils(bool enable) |
+{ |
+#if ENABLE(NAVIGATOR_CONTENT_UTILS) |
+ RuntimeEnabledFeatures::setNavigatorContentUtilsEnabled(enable); |
+#endif |
+} |
+ |
+bool WebRuntimeFeatures::isNavigatorContentUtilsEnabled() |
+{ |
+#if ENABLE(NAVIGATOR_CONTENT_UTILS) |
+ return RuntimeEnabledFeatures::navigatorContentUtilsEnabled(); |
+#else |
+ return false; |
+#endif |
+} |
+ |
void WebRuntimeFeatures::enableCustomElements(bool enable) |
{ |
RuntimeEnabledFeatures::setCustomElementsEnabled(enable); |