Added deep equal operator for animation value

This commit is contained in:
Shing Lyu 2017-02-24 15:01:07 +08:00
parent b52288af00
commit 7596ee75df

View file

@ -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]