Bug 1355349 - Add FFI for calling Servo's add and accumulate methods on animation values; r?hiro draft
authorBrian Birtles <birtles@gmail.com>
Mon, 05 Jun 2017 10:36:27 +0900
changeset 588796 c80deef9dcec2dad0032599d9ac3f43f64def644
parent 588795 8187e2f5eabd48a04ba56291462332b1fcc3acdd
child 588797 718a4489043012d1c64e7bd4333e5304144cec0b
push id62159
push userbbirtles@mozilla.com
push dateMon, 05 Jun 2017 03:26:35 +0000
reviewershiro
bugs1355349
milestone55.0a1
Bug 1355349 - Add FFI for calling Servo's add and accumulate methods on animation values; r?hiro MozReview-Commit-ID: CdkDjFBJ6Zn
layout/style/ServoBindingList.h
--- a/layout/style/ServoBindingList.h
+++ b/layout/style/ServoBindingList.h
@@ -232,16 +232,25 @@ SERVO_BINDING_FUNC(Servo_GetProperties_O
 SERVO_BINDING_FUNC(Servo_AnimationValues_Interpolate,
                    RawServoAnimationValueStrong,
                    RawServoAnimationValueBorrowed from,
                    RawServoAnimationValueBorrowed to,
                    double progress)
 SERVO_BINDING_FUNC(Servo_AnimationValues_IsInterpolable, bool,
                    RawServoAnimationValueBorrowed from,
                    RawServoAnimationValueBorrowed to)
+SERVO_BINDING_FUNC(Servo_AnimationValues_Add,
+                   RawServoAnimationValueStrong,
+                   RawServoAnimationValueBorrowed a,
+                   RawServoAnimationValueBorrowed b)
+SERVO_BINDING_FUNC(Servo_AnimationValues_Accumulate,
+                   RawServoAnimationValueStrong,
+                   RawServoAnimationValueBorrowed a,
+                   RawServoAnimationValueBorrowed b,
+                   uint64_t count)
 SERVO_BINDING_FUNC(Servo_AnimationValues_GetZeroValue,
                    RawServoAnimationValueStrong,
                    RawServoAnimationValueBorrowed value_to_match)
 SERVO_BINDING_FUNC(Servo_AnimationValues_ComputeDistance, double,
                    RawServoAnimationValueBorrowed from,
                    RawServoAnimationValueBorrowed to)
 SERVO_BINDING_FUNC(Servo_AnimationValue_Serialize, void,
                    RawServoAnimationValueBorrowed value,