Add FFI for calling Servo's add and accumulate methods on animation values

This commit is contained in:
Brian Birtles 2017-06-05 12:05:08 +09:00
parent 34556f7769
commit 6491509f87
2 changed files with 40 additions and 0 deletions

View file

@ -2185,6 +2185,17 @@ extern "C" {
RawServoAnimationValueBorrowed)
-> bool;
}
extern "C" {
pub fn Servo_AnimationValues_Add(a: RawServoAnimationValueBorrowed,
b: RawServoAnimationValueBorrowed)
-> RawServoAnimationValueStrong;
}
extern "C" {
pub fn Servo_AnimationValues_Accumulate(a: RawServoAnimationValueBorrowed,
b: RawServoAnimationValueBorrowed,
count: u64)
-> RawServoAnimationValueStrong;
}
extern "C" {
pub fn Servo_AnimationValues_GetZeroValue(value_to_match:
RawServoAnimationValueBorrowed)