Bug 1311257 - Add an FFI function that returns an AnimationValue for a given nsCSSPropertyID from computed values. r?heycam draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Thu, 06 Apr 2017 10:34:50 +0900
changeset 556562 dca48155a1aa883e0403685d39d678df90869f5c
parent 556561 148446b1af01ac0db481ed1f93dfa36546e00f87
child 556563 efbcad9a8e91665f7ad54c814c44d909dbe4a38c
push id52584
push userhikezoe@mozilla.com
push dateThu, 06 Apr 2017 03:01:12 +0000
reviewersheycam
bugs1311257
milestone55.0a1
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
layout/style/ServoBindingList.h
--- 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,