mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
style: Paper over a crash in non-nightly
Differential Revision: https://phabricator.services.mozilla.com/D107400
This commit is contained in:
parent
108c50c6df
commit
b222bd3162
2 changed files with 15 additions and 16 deletions
|
@ -116,21 +116,6 @@ 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