Bug 1332633 - Add Servo_AnimationValues_ComputeDistance. draft
authorBoris Chiou <boris.chiou@gmail.com>
Fri, 21 Apr 2017 11:31:41 +0800
changeset 566191 1bb2f8a83e17599a851c69e1882620e79a070a65
parent 566188 fe3b73229a19e4625d2675018fb85bbaf0d05ca9
child 625232 39422f0bb6fb03e533dcad6bac582088a81492ab
push id55128
push userbmo:boris.chiou@gmail.com
push dateFri, 21 Apr 2017 03:36:05 +0000
bugs1332633
milestone55.0a1
Bug 1332633 - Add Servo_AnimationValues_ComputeDistance. This FFI will be used by nsDOMWindowUtils::ComputeAnimationDistance, which will be implemented in another bug. MozReview-Commit-ID: G3aYICDnCLA
layout/style/ServoBindingList.h
--- a/layout/style/ServoBindingList.h
+++ b/layout/style/ServoBindingList.h
@@ -158,16 +158,19 @@ SERVO_BINDING_FUNC(Servo_Property_IsDisc
 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_ComputeDistance, double,
+                   RawServoAnimationValueBorrowed from,
+                   RawServoAnimationValueBorrowed to)
 SERVO_BINDING_FUNC(Servo_AnimationValue_Serialize, void,
                    RawServoAnimationValueBorrowed value,
                    nsCSSPropertyID property,
                    nsAString* buffer)
 SERVO_BINDING_FUNC(Servo_AnimationValue_GetOpacity, float,
                    RawServoAnimationValueBorrowed value)
 SERVO_BINDING_FUNC(Servo_AnimationValue_GetTransform, void,
                    RawServoAnimationValueBorrowed value,