mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -616,7 +616,7 @@ fn get_animation_rule(element: &GeckoElement,
|
|||
-> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
use gecko_bindings::sugar::ownership::HasSimpleFFI;
|
||||
// Also, we should try to reuse the PDB, to avoid creating extra rule nodes.
|
||||
let mut animation_values = AnimationValueMap::new();
|
||||
let mut animation_values = AnimationValueMap::default();
|
||||
if unsafe { Gecko_GetAnimationRule(element.0,
|
||||
cascade_level,
|
||||
AnimationValueMap::as_ffi_mut(&mut animation_values)) } {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue