Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp

Issue 14324009: Add support for disabling CSS Properties at runtime (Closed) Base URL: http://src.chromium.org/blink/trunk/Source/
Patch Set: Runtime guard more uses of CSSPropertyID, per Elliot's request. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/public/WebPreferences.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp
diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp b/Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp
index 986bd9852f46c618cf602e914e95bb1f12c136a9..cb6c82683719a4aba0fae69b0700698d0729ed41 100644
--- a/Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp
+++ b/Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp
@@ -82,6 +82,7 @@ void WebPreferences::reset()
authorAndUserStylesEnabled = true;
defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1");
experimentalWebGLEnabled = false;
+ experimentalCSSExclusionsEnabled = true;
experimentalCSSRegionsEnabled = true;
experimentalCSSGridLayoutEnabled = false;
javaEnabled = false;
@@ -154,6 +155,7 @@ void WebPreferences::applyTo(WebView* webView)
settings->setDefaultTextEncodingName(defaultTextEncodingName);
settings->setExperimentalWebGLEnabled(experimentalWebGLEnabled);
WebRuntimeFeatures::enableCSSRegions(experimentalCSSRegionsEnabled);
+ WebRuntimeFeatures::enableCSSExclusions(experimentalCSSExclusionsEnabled);
settings->setExperimentalCSSGridLayoutEnabled(experimentalCSSGridLayoutEnabled);
settings->setExperimentalCSSCustomFilterEnabled(cssCustomFilterEnabled);
settings->setJavaEnabled(javaEnabled);
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/public/WebPreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698