diff options
author | Peter <ptrgonda@gmail.com> | 2015-04-09 21:42:41 -0400 |
---|---|---|
committer | Peter <ptrgonda@gmail.com> | 2015-04-09 21:42:41 -0400 |
commit | 881112d34e6bb95fefd256b17bd690b6e8290d74 (patch) | |
tree | f6b11588b1cc4fb947356a63a8a2ae21c69d8d9c /components/util/opts.rs | |
parent | c1b7c0c74a2f224a9c8cbf427e10b9591a693d84 (diff) | |
download | servo-881112d34e6bb95fefd256b17bd690b6e8290d74.tar.gz servo-881112d34e6bb95fefd256b17bd690b6e8290d74.zip |
Adding cmdling argument for disabling style share cache, fix #5581
Diffstat (limited to 'components/util/opts.rs')
-rw-r--r-- | components/util/opts.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/util/opts.rs b/components/util/opts.rs index 78cb530a8ce..9d184feb555 100644 --- a/components/util/opts.rs +++ b/components/util/opts.rs @@ -135,6 +135,9 @@ pub struct Opts { /// Whether MIME sniffing should be used pub sniff_mime_types: bool, + + /// Whether Style Sharing Cache is used + pub disable_share_style_cache: bool, } fn print_usage(app: &str, opts: &[getopts::OptGroup]) { @@ -162,6 +165,8 @@ pub fn print_debug_usage(app: &str) { print_option("trace-layout", "Write layout trace to an external file for debugging."); print_option("validate-display-list-geometry", "Display an error when display list geometry escapes overflow region."); + print_option("disable-share-style-cache", + "Disable the style sharing cache."); println!(""); } @@ -216,6 +221,7 @@ pub fn default_opts() -> Opts { profile_tasks: false, resources_path: None, sniff_mime_types: false, + disable_share_style_cache: false, } } @@ -377,6 +383,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool { validate_display_list_geometry: debug_options.contains(&"validate-display-list-geometry"), resources_path: opt_match.opt_str("resources-path"), sniff_mime_types: opt_match.opt_present("sniff-mime-types"), + disable_share_style_cache: debug_options.contains(&"disable-share-style-cache"), }; set_opts(opts); |