From 552bff8fd156cf1dcf170ee23b2c419429270d3c Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Wed, 3 May 2017 16:24:44 -0700 Subject: [PATCH] Re-enable the style sharing cache. MozReview-Commit-ID: C39vdHjPM7J --- components/style/context.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/style/context.rs b/components/style/context.rs index 1cdd8c00636..029f8901aa9 100644 --- a/components/style/context.rs +++ b/components/style/context.rs @@ -94,11 +94,7 @@ impl Default for StyleSystemOptions { #[cfg(feature = "gecko")] fn default() -> Self { StyleSystemOptions { - disable_style_sharing_cache: - // Disable the style sharing cache on opt builds until - // bug 1358693 is fixed, but keep it on debug builds to make - // sure we don't introduce correctness bugs. - if cfg!(debug_assertions) { get_env("DISABLE_STYLE_SHARING_CACHE") } else { true }, + disable_style_sharing_cache: get_env("DISABLE_STYLE_SHARING_CACHE"), dump_style_statistics: get_env("DUMP_STYLE_STATISTICS"), } }