diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-12-18 09:08:24 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-01-09 14:26:02 +0100 |
commit | 5115cbd1c0e0d2c1a791c285ed0bf443e1fd7fca (patch) | |
tree | f8328be961415eb2a3d8a0527327e381ddecceef /components/style/selector_map.rs | |
parent | b26f3280d2f470e25c63d2acb10a80c97d08b3ab (diff) | |
download | servo-5115cbd1c0e0d2c1a791c285ed0bf443e1fd7fca.tar.gz servo-5115cbd1c0e0d2c1a791c285ed0bf443e1fd7fca.zip |
style: Store ::slotted rules separately on the cascade data, since they may cross the shadow boundary.
MozReview-Commit-ID: EY9nK3169vv
Diffstat (limited to 'components/style/selector_map.rs')
-rw-r--r-- | components/style/selector_map.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/style/selector_map.rs b/components/style/selector_map.rs index c7c41c6de44..59d53cda2de 100644 --- a/components/style/selector_map.rs +++ b/components/style/selector_map.rs @@ -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 |