mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Re-enable the style sharing cache.
MozReview-Commit-ID: C39vdHjPM7J
This commit is contained in:
parent
1fb9108daf
commit
552bff8fd1
1 changed files with 1 additions and 5 deletions
|
@ -94,11 +94,7 @@ impl Default for StyleSystemOptions {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
StyleSystemOptions {
|
StyleSystemOptions {
|
||||||
disable_style_sharing_cache:
|
disable_style_sharing_cache: get_env("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 },
|
|
||||||
dump_style_statistics: get_env("DUMP_STYLE_STATISTICS"),
|
dump_style_statistics: get_env("DUMP_STYLE_STATISTICS"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue