mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Use FnvHashmap instead of HashMap for AnimationValueMap.
This commit is contained in:
parent
b50cf33efd
commit
6c69771ea5
2 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ use properties::longhands::visibility::computed_value::T as Visibility;
|
|||
use selectors::parser::SelectorParseError;
|
||||
use smallvec::SmallVec;
|
||||
use std::cmp;
|
||||
#[cfg(feature = "gecko")] use std::collections::HashMap;
|
||||
#[cfg(feature = "gecko")] use fnv::FnvHashMap;
|
||||
use style_traits::ParseError;
|
||||
use super::ComputedValues;
|
||||
use values::{Auto, CSSFloat, CustomIdent, Either};
|
||||
|
@ -440,7 +440,7 @@ impl AnimatedProperty {
|
|||
/// This HashMap stores the values that are the last AnimationValue to be
|
||||
/// composed for each TransitionProperty.
|
||||
#[cfg(feature = "gecko")]
|
||||
pub type AnimationValueMap = HashMap<AnimatableLonghand, AnimationValue>;
|
||||
pub type AnimationValueMap = FnvHashMap<AnimatableLonghand, AnimationValue>;
|
||||
#[cfg(feature = "gecko")]
|
||||
unsafe impl HasFFI for AnimationValueMap {
|
||||
type FFIType = RawServoAnimationValueMap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue