mirror of
https://github.com/servo/servo.git
synced 2025-10-02 09:39:14 +01:00
Bug 1328787 - Part 8: Animation timing function can be overridden by animation-timing-function specified in keyframe. r=heycam
This commit is contained in:
parent
51faa53ee2
commit
e20a3ad9b5
3 changed files with 38 additions and 2 deletions
|
@ -1155,7 +1155,12 @@ pub extern "C" fn Servo_StyleSet_FillKeyframesForName(raw_data: RawServoStyleSet
|
|||
|
||||
if let Some(ref animation) = data.stylist.animations().get(&name) {
|
||||
for step in &animation.steps {
|
||||
let timing_function = *style_timing_function;
|
||||
// Override timing_function if the keyframe has animation-timing-function.
|
||||
let timing_function = if let Some(val) = step.get_animation_timing_function() {
|
||||
val.into()
|
||||
} else {
|
||||
*style_timing_function
|
||||
};
|
||||
|
||||
let _keyframe = unsafe {
|
||||
Gecko_AnimationAppendKeyframe(keyframes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue