mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix wrong index for missing properties in the initial and final keyframes.
This commit is contained in:
parent
7c5ac06cd2
commit
8ced5db704
1 changed files with 3 additions and 1 deletions
|
@ -1504,9 +1504,11 @@ pub extern "C" fn Servo_StyleSet_FillKeyframesForName(raw_data: RawServoStyleSet
|
|||
// Append missing property values in the initial or the finial keyframes.
|
||||
if step.start_percentage.0 == 0. ||
|
||||
step.start_percentage.0 == 1. {
|
||||
for (index, property) in animation.properties_changed.iter().enumerate() {
|
||||
let mut index = unsafe { (*keyframe).mPropertyValues.len() };
|
||||
for property in animation.properties_changed.iter() {
|
||||
if !seen.has_transition_property_bit(&property) {
|
||||
add_computed_property_value(keyframe, index, style, property);
|
||||
index += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue