style: Use a FnvHashMap for ExtraStyleData, and remove unused stuff from PerDocumentStyleDataImpl.

This commit is contained in:
Emilio Cobos Álvarez 2017-05-22 03:55:33 +02:00
parent 5749886336
commit bc8382ebe9
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 5 additions and 28 deletions

View file

@ -174,7 +174,7 @@ pub struct ExtraStyleData<'a> {
/// A list of effective font-face rules and their origin.
pub font_faces: &'a mut Vec<(Arc<Locked<FontFaceRule>>, Origin)>,
/// A map of effective counter-style rules.
pub counter_styles: &'a mut HashMap<Atom, Arc<Locked<CounterStyleRule>>>,
pub counter_styles: &'a mut FnvHashMap<Atom, Arc<Locked<CounterStyleRule>>>,
}
#[cfg(feature = "gecko")]