Bug 1311257 - Add an FFI function that returns an AnimationValue for a given nsCSSPropertyID from computed values. r?heycam
When we compose style for a given nsCSSPropertyID in the case where
we have no specified values in target keyframe, we use this AnimationValue
for composition as if it's specified.
MozReview-Commit-ID: 2CTLIGgeLIO
--- a/layout/style/ServoBindingList.h
+++ b/layout/style/ServoBindingList.h
@@ -128,16 +128,20 @@ SERVO_BINDING_FUNC(Servo_GetComputedKeyf
ServoComputedValuesBorrowed style,
ServoComputedValuesBorrowedOrNull parent_style,
RawServoStyleSetBorrowed set,
RawGeckoComputedKeyframeValuesListBorrowedMut result)
SERVO_BINDING_FUNC(Servo_AnimationValueMap_Push, void,
RawServoAnimationValueMapBorrowed,
nsCSSPropertyID property,
RawServoAnimationValueBorrowed value)
+SERVO_BINDING_FUNC(Servo_ComputedValues_ExtractAnimationValue,
+ RawServoAnimationValueStrong,
+ ServoComputedValuesBorrowed computed_values,
+ nsCSSPropertyID property)
// AnimationValues handling
SERVO_BINDING_FUNC(Servo_AnimationValues_Interpolate,
RawServoAnimationValueStrong,
RawServoAnimationValueBorrowed from,
RawServoAnimationValueBorrowed to,
double progress)
SERVO_BINDING_FUNC(Servo_AnimationValue_Serialize, void,