Commit c76f58ba authored by bear.travis@gmail.com's avatar bear.travis@gmail.com

Add CSS exclusions command-line switch

Connects a command-line switch to the exclusions WebRuntimeFeature methods added for https://bugs.webkit.org/show_bug.cgi?id=91420
Contributed by betravis@adobe.com


Review URL: https://chromiumcodereview.appspot.com/10832183

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151172 0039d316-1c4b-4281-b951-d872f2087c98
parent 2c227ffd
......@@ -195,3 +195,5 @@ Petar Jovanovic <petarj@mips.com>
Sergio Carlos Morales Angeles <carloschilazo@gmail.com>
Mihai Maerean <mmaerean@adobe.com>
Kaustubh Atrawalkar <kaustubh.ra@gmail.com>
Robert Bear Travis <betravis@adobe.com>
Robert Bear Travis <bear.travis@gmail.com>
......@@ -752,6 +752,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDisableWebSockets,
switches::kDomAutomationController,
switches::kEnableAccessibilityLogging,
switches::kEnableCssExclusions,
switches::kEnableDCHECK,
switches::kEnableEncryptedMedia,
switches::kEnableFixedLayout,
......
......@@ -255,6 +255,9 @@ const char kEnableAccessibilityLogging[] = "enable-accessibility-logging";
const char kEnableCompositingForFixedPosition[] =
"enable-fixed-position-compositing";
// Enables CSS3 exclusions
const char kEnableCssExclusions[] = "enable-css-exclusions";
// Enables CSS3 regions
const char kEnableCssRegions[] = "enable-css-regions";
......
......@@ -93,6 +93,7 @@ CONTENT_EXPORT extern const char kEnableAcceleratedFilters[];
extern const char kEnableAcceleratedPlugins[];
extern const char kEnableAccessibilityLogging[];
CONTENT_EXPORT extern const char kEnableCompositingForFixedPosition[];
extern const char kEnableCssExclusions[];
extern const char kEnableCssRegions[];
extern const char kEnableCssShaders[];
extern const char kEnableCssVariables[];
......
......@@ -618,6 +618,9 @@ void RenderThreadImpl::EnsureWebKitInitialized() {
WebRuntimeFeatures::enableStyleScoped(
command_line.HasSwitch(switches::kEnableStyleScoped));
WebRuntimeFeatures::enableCSSExclusions(
command_line.HasSwitch(switches::kEnableCssExclusions));
FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
if (content::GetContentClient()->renderer()->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment