mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
style: Store ::slotted rules separately on the cascade data, since they may cross the shadow boundary.
MozReview-Commit-ID: EY9nK3169vv
This commit is contained in:
parent
b26f3280d2
commit
5115cbd1c0
4 changed files with 161 additions and 51 deletions
|
@ -106,6 +106,13 @@ pub struct SelectorMap<T: 'static> {
|
|||
pub count: usize,
|
||||
}
|
||||
|
||||
impl<T: 'static> Default for SelectorMap<T> {
|
||||
#[inline]
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME(Manishearth) the 'static bound can be removed when
|
||||
// our HashMap fork (hashglobe) is able to use NonZero,
|
||||
// or when stdlib gets fallible collections
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue