From ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 24 Feb 2012 16:36:50 +0100 Subject: Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790) --- Source/WebKit/chromium/src/WebRuntimeFeatures.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Source/WebKit/chromium/src/WebRuntimeFeatures.cpp') diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp index 38963b521..f1960eb31 100644 --- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp +++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp @@ -450,5 +450,23 @@ bool WebRuntimeFeatures::isShadowDOMEnabled() #endif } +void WebRuntimeFeatures::enableStyleScoped(bool enable) +{ +#if ENABLE(STYLE_SCOPED) + RuntimeEnabledFeatures::setStyleScopedEnabled(enable); +#else + UNUSED_PARAM(enable); +#endif +} + +bool WebRuntimeFeatures::isStyleScopedEnabled() +{ +#if ENABLE(STYLE_SCOPED) + return RuntimeEnabledFeatures::styleScopedEnabled(); +#else + return false; +#endif +} + } // namespace WebKit -- cgit v1.2.1