mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Added deep equal operator for animation value
This commit is contained in:
parent
b52288af00
commit
7596ee75df
1 changed files with 10 additions and 0 deletions
|
@ -316,6 +316,16 @@ pub extern "C" fn Servo_AnimationValue_GetTransform(value: RawServoAnimationValu
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_AnimationValue_DeepEqual(this: RawServoAnimationValueBorrowed,
|
||||
other: RawServoAnimationValueBorrowed)
|
||||
-> bool
|
||||
{
|
||||
let this_value = AnimationValue::as_arc(&this);
|
||||
let other_value = AnimationValue::as_arc(&other);
|
||||
this_value == other_value
|
||||
}
|
||||
|
||||
/// Takes a ServoAnimationValues and populates it with the animation values corresponding
|
||||
/// to a given property declaration block
|
||||
#[no_mangle]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue