mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Better computation of animation keyframes
This begins to address #26625 by properly applying CSS variables during keyframe computation and no longer using `apply_declarations`. Instead, walk the declarations, combining them into IntermediateComputedKeyframe, maintaining declarations that modify CSS custom properties. Then compute a set of AnimationValues for each keyframe and use those to produce interpolated animation values.
This commit is contained in:
parent
83fa1b9eaa
commit
b875f14e86
69 changed files with 269 additions and 1609 deletions
|
@ -321,6 +321,13 @@ impl PropertyDeclarationBlock {
|
|||
self.longhands.contains_any_reset()
|
||||
}
|
||||
|
||||
/// Returns a `LonghandIdSet` representing the properties that are changed in
|
||||
/// this block.
|
||||
#[inline]
|
||||
pub fn longhands(&self) -> &LonghandIdSet {
|
||||
&self.longhands
|
||||
}
|
||||
|
||||
/// Get a declaration for a given property.
|
||||
///
|
||||
/// NOTE: This is linear time in the case of custom properties or in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue