summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_thread_impl.cc
diff options
context:
space:
mode:
authorhayato@chromium.org <hayato@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-30 09:13:16 +0000
committerhayato@chromium.org <hayato@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-30 09:13:16 +0000
commitd2edc6705ee1da92a09d2791ca679a1e2ad4e296 (patch)
tree326efb1518f38d6c0994e0f1d9867d409f1019a4 /content/renderer/render_thread_impl.cc
parent483dc7e3e358e8211fb7455240093fc1e50ef9f1 (diff)
downloadchromium_src-d2edc6705ee1da92a09d2791ca679a1e2ad4e296.zip
chromium_src-d2edc6705ee1da92a09d2791ca679a1e2ad4e296.tar.gz
chromium_src-d2edc6705ee1da92a09d2791ca679a1e2ad4e296.tar.bz2
Add enable-shadow-dom command line flag.
BUG=111112 TEST=Run chrome with '--enable-shadow-dom' and enter 'new WebKitShadowRoot(document.createElement('div'))' in Console. Review URL: http://codereview.chromium.org/9285014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.cc')
-rw-r--r--content/renderer/render_thread_impl.cc3
1 files changed, 3 insertions, 0 deletions
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()->