Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-11-21 13:04:26 +01:00 committed by Martin Robinson
parent d49b014c78
commit 7d72d7c385
2 changed files with 8 additions and 2 deletions

View file

@ -49,7 +49,10 @@ fn report_statistics(stats: &PerThreadTraversalStatistics) {
}
fn parallelism_threshold() -> usize {
static_prefs::pref!("layout.css.stylo-parallelism-threshold") as usize
#[cfg(feature = "gecko")]
return static_prefs::pref!("layout.css.stylo-parallelism-threshold") as usize;
#[cfg(feature = "servo")]
return 16;
}
/// Do a DOM traversal for top-down and (optionally) bottom-up processing, generic over `D`.