mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Use PrecomputedHasher for custom properties.
This commit is contained in:
parent
497897ffc9
commit
b7b22b76a8
3 changed files with 69 additions and 61 deletions
|
@ -693,8 +693,7 @@ impl PropertyDeclarationBlock {
|
|||
inherited_custom_properties: Option<Arc<::custom_properties::CustomPropertiesMap>>,
|
||||
) -> Option<Arc<::custom_properties::CustomPropertiesMap>> {
|
||||
let mut custom_properties = None;
|
||||
// FIXME: Use PrecomputedHasher instead.
|
||||
let mut seen_custom = HashSet::new();
|
||||
let mut seen_custom = PrecomputedHashSet::default();
|
||||
|
||||
for declaration in self.normal_declaration_iter() {
|
||||
if let PropertyDeclaration::Custom(ref name, ref value) = *declaration {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue