Add Servo_StyleSet_GetComputedValuesByAddingAnimation FFI.

Add an FFI to create a temporary ServoStyleContext with the animation value.
We need this because we calculate the Cumulative change hints to check
if we can ignore this animation segment.
This commit is contained in:
Boris Chiou 2017-10-19 10:49:10 +08:00
parent 4c538b642e
commit aa72970f0a
3 changed files with 117 additions and 27 deletions

View file

@ -3004,6 +3004,19 @@ extern "C" {
CSSPseudoElementType)
-> ServoStyleContextStrong;
}
extern "C" {
pub fn Servo_StyleSet_GetComputedValuesByAddingAnimation(set:
RawServoStyleSetBorrowed,
element:
RawGeckoElementBorrowed,
existing_style:
ServoStyleContextBorrowed,
snapshots:
*const ServoElementSnapshotTable,
animation:
RawServoAnimationValueBorrowed)
-> ServoStyleContextStrong;
}
extern "C" {
pub fn Servo_SerializeFontValueForCanvas(declarations:
RawServoDeclarationBlockBorrowed,