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

Unified Diff: content/child/runtime_features.cc

Issue 577943002: Add a commandline flag for disabling the SVG 1 DOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 65c96752ac7c9c37aa85c2f6722d51e7dd7bfb67..b6f55a32b46a0920b4b5c6661027eacd50bca379 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -179,6 +179,10 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
switches::kEnableExperimentalWebPlatformFeatures)) {
WebRuntimeFeatures::enableNetworkInformation(true);
}
+
+ if (command_line.HasSwitch(switches::kDisableSVG1DOM)) {
+ WebRuntimeFeatures::enableSVG1DOM(false);
+ }
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698