mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add weighted telemetry probes for parallel restyles
This commit is contained in:
parent
d573081fe5
commit
337e5288c2
6 changed files with 84 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue