summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/browser/renderer_host/render_process_host_impl.cc1
-rw-r--r--content/public/common/content_switches.cc3
-rw-r--r--content/public/common/content_switches.h1
-rw-r--r--content/renderer/render_thread_impl.cc3
4 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 80d1e68..52b3cfb 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -661,6 +661,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kEnableLogging,
switches::kEnableMediaSource,
switches::kEnableMediaStream,
+ switches::kEnableShadowDOM,
switches::kEnableStrictSiteIsolation,
switches::kDisableFullScreen,
switches::kEnablePepperTesting,
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 391d4f8..6ddd375 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -253,6 +253,9 @@ const char kEnableSandboxLogging[] = "enable-sandbox-logging";
// Enable the seccomp sandbox (Linux only)
const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox";
+// Enable shadow DOM API
+const char kEnableShadowDOM[] = "enable-shadow-dom";
+
// Enables StatsTable, logging statistics to a global named shared memory table.
const char kEnableStatsTable[] = "enable-stats-table";
diff --git a/content/public/common/content_switches.h b/content/public/common/content_switches.h
index a666779..ba48bfe 100644
--- a/content/public/common/content_switches.h
+++ b/content/public/common/content_switches.h
@@ -88,6 +88,7 @@ CONTENT_EXPORT extern const char kEnablePrivilegedWebGLExtensions[];
extern const char kEnableSSLCachedInfo[];
extern const char kEnableSandboxLogging[];
extern const char kEnableSeccompSandbox[];
+extern const char kEnableShadowDOM[];
CONTENT_EXPORT extern const char kEnableStatsTable[];
extern const char kEnableStrictSiteIsolation[];
CONTENT_EXPORT extern const char kEnableThreadedCompositing[];
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index c9f4099..0cb8d20 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -547,6 +547,9 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableQuota(true);
+ WebRuntimeFeatures::enableShadowDOM(
+ command_line.HasSwitch(switches::kEnableShadowDOM));
+
FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
if (content::GetContentClient()->renderer()->