Add weighted telemetry probes for parallel restyles

This commit is contained in:
Manish Goregaokar 2017-11-28 14:42:59 -08:00 committed by Manish Goregaokar
parent d573081fe5
commit 337e5288c2
6 changed files with 84 additions and 26 deletions

View file

@ -116,6 +116,21 @@ impl Default for StyleSystemOptions {
}
}
impl StyleSystemOptions {
#[cfg(feature = "servo")]
/// On Gecko's nightly build?
pub fn is_nightly(&self) -> bool {
false
}
#[cfg(feature = "gecko")]
/// On Gecko's nightly build?
#[inline]
pub fn is_nightly(&self) -> bool {
structs::GECKO_IS_NIGHTLY
}
}
/// A shared style context.
///
/// There's exactly one of these during a given restyle traversal, and it's