mirror of
https://github.com/servo/servo.git
synced 2025-07-28 17:50:37 +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
|
@ -10,7 +10,7 @@ use bezier::Bezier;
|
|||
use context::SharedStyleContext;
|
||||
use dom::OpaqueNode;
|
||||
use font_metrics::FontMetricsProvider;
|
||||
use properties::{self, CascadeFlags, ComputedValues, Importance};
|
||||
use properties::{self, CascadeFlags, ComputedValues};
|
||||
use properties::animated_properties::{AnimatableLonghand, AnimatedProperty, TransitionProperty};
|
||||
use properties::longhands::animation_direction::computed_value::single_value::T as AnimationDirection;
|
||||
use properties::longhands::animation_iteration_count::single_value::computed_value::T as AnimationIterationCount;
|
||||
|
@ -484,12 +484,11 @@ fn compute_style_for_animation_step(context: &SharedStyleContext,
|
|||
let guard = declarations.read_with(context.guards.author);
|
||||
|
||||
// No !important in keyframes.
|
||||
debug_assert!(guard.declarations().iter()
|
||||
.all(|&(_, importance)| importance == Importance::Normal));
|
||||
debug_assert!(!guard.any_important());
|
||||
|
||||
let iter = || {
|
||||
guard.declarations().iter().rev()
|
||||
.map(|&(ref decl, _importance)| (decl, CascadeLevel::Animations))
|
||||
.map(|decl| (decl, CascadeLevel::Animations))
|
||||
};
|
||||
|
||||
// This currently ignores visited styles, which seems acceptable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue