mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Use SmallBitVec for important flags in PDB
This commit is contained in:
parent
21006fb752
commit
a5a0e9ffe8
7 changed files with 129 additions and 114 deletions
|
@ -299,7 +299,7 @@ impl KeyframesStep {
|
|||
guard: &SharedRwLockReadGuard) -> Self {
|
||||
let declared_timing_function = match value {
|
||||
KeyframesStepValue::Declarations { ref block } => {
|
||||
block.read_with(guard).declarations().iter().any(|&(ref prop_decl, _)| {
|
||||
block.read_with(guard).declarations().iter().any(|prop_decl| {
|
||||
match *prop_decl {
|
||||
PropertyDeclaration::AnimationTimingFunction(..) => true,
|
||||
_ => false,
|
||||
|
@ -325,7 +325,7 @@ impl KeyframesStep {
|
|||
match self.value {
|
||||
KeyframesStepValue::Declarations { ref block } => {
|
||||
let guard = block.read_with(guard);
|
||||
let &(ref declaration, _) =
|
||||
let (declaration, _) =
|
||||
guard.get(PropertyDeclarationId::Longhand(LonghandId::AnimationTimingFunction)).unwrap();
|
||||
match *declaration {
|
||||
PropertyDeclaration::AnimationTimingFunction(ref value) => {
|
||||
|
@ -369,7 +369,7 @@ fn get_animated_properties(keyframes: &[Arc<Locked<Keyframe>>], guard: &SharedRw
|
|||
for keyframe in keyframes {
|
||||
let keyframe = keyframe.read_with(&guard);
|
||||
let block = keyframe.block.read_with(guard);
|
||||
for &(ref declaration, importance) in block.declarations().iter() {
|
||||
for (declaration, importance) in block.declaration_importance_iter() {
|
||||
assert!(!importance.important());
|
||||
|
||||
if let Some(property) = AnimatableLonghand::from_declaration(declaration) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue