mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
Add AnimationValueMap and expose it in FFI.
Current Gecko composes all of effects in the composite order at once. We can put each computed value into this AnimationValueMap every time composing an effect.
This commit is contained in:
parent
ba18c14b91
commit
52bee9a4cf
6 changed files with 36 additions and 2 deletions
|
@ -11,6 +11,7 @@ use gecko_bindings::structs::RawGeckoComputedKeyframeValuesList;
|
|||
use gecko_bindings::structs::RawGeckoNode;
|
||||
use gecko_bindings::structs::RawGeckoAnimationValueList;
|
||||
use gecko_bindings::structs::RawServoAnimationValue;
|
||||
use gecko_bindings::structs::RawServoAnimationValueMap;
|
||||
use gecko_bindings::structs::RawServoDeclarationBlock;
|
||||
use gecko_bindings::structs::RawGeckoPresContext;
|
||||
use gecko_bindings::structs::RawGeckoPresContextOwned;
|
||||
|
@ -207,6 +208,9 @@ pub struct RawServoImportRule(RawServoImportRuleVoid);
|
|||
pub type RawServoAnimationValueStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoAnimationValue>;
|
||||
pub type RawServoAnimationValueBorrowed<'a> = &'a RawServoAnimationValue;
|
||||
pub type RawServoAnimationValueBorrowedOrNull<'a> = Option<&'a RawServoAnimationValue>;
|
||||
pub type RawServoAnimationValueMapStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoAnimationValueMap>;
|
||||
pub type RawServoAnimationValueMapBorrowed<'a> = &'a RawServoAnimationValueMap;
|
||||
pub type RawServoAnimationValueMapBorrowedOrNull<'a> = Option<&'a RawServoAnimationValueMap>;
|
||||
pub type RawServoMediaListStrong = ::gecko_bindings::sugar::ownership::Strong<RawServoMediaList>;
|
||||
pub type RawServoMediaListBorrowed<'a> = &'a RawServoMediaList;
|
||||
pub type RawServoMediaListBorrowedOrNull<'a> = Option<&'a RawServoMediaList>;
|
||||
|
@ -325,6 +329,14 @@ extern "C" {
|
|||
extern "C" {
|
||||
pub fn Servo_AnimationValue_Release(ptr: RawServoAnimationValueBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_AnimationValueMap_AddRef(ptr:
|
||||
RawServoAnimationValueMapBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_AnimationValueMap_Release(ptr:
|
||||
RawServoAnimationValueMapBorrowed);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_AddRef(ptr: RawServoMediaListBorrowed);
|
||||
}
|
||||
|
|
|
@ -25843,6 +25843,9 @@ pub mod root {
|
|||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct RawServoStyleSet([u8; 0]);
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct RawServoAnimationValueMap([u8; 0]);
|
||||
pub type RawGeckoNode = root::nsINode;
|
||||
pub type RawGeckoElement = root::mozilla::dom::Element;
|
||||
pub type RawGeckoDocument = root::nsIDocument;
|
||||
|
@ -25856,6 +25859,8 @@ pub mod root {
|
|||
root::nsTArray<*const root::RawServoAnimationValue>;
|
||||
pub type RawGeckoStyleAnimationList =
|
||||
root::nsStyleAutoArray<root::mozilla::StyleAnimation>;
|
||||
pub type RawServoAnimationValueMapBorrowed =
|
||||
*const root::RawServoAnimationValueMap;
|
||||
pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
|
||||
pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode;
|
||||
pub type RawGeckoElementBorrowed = *const root::RawGeckoElement;
|
||||
|
|
|
@ -25201,6 +25201,9 @@ pub mod root {
|
|||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct RawServoStyleSet([u8; 0]);
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct RawServoAnimationValueMap([u8; 0]);
|
||||
pub type RawGeckoNode = root::nsINode;
|
||||
pub type RawGeckoElement = root::mozilla::dom::Element;
|
||||
pub type RawGeckoDocument = root::nsIDocument;
|
||||
|
@ -25214,6 +25217,8 @@ pub mod root {
|
|||
root::nsTArray<*const root::RawServoAnimationValue>;
|
||||
pub type RawGeckoStyleAnimationList =
|
||||
root::nsStyleAutoArray<root::mozilla::StyleAnimation>;
|
||||
pub type RawServoAnimationValueMapBorrowed =
|
||||
*const root::RawServoAnimationValueMap;
|
||||
pub type RawGeckoNodeBorrowed = *const root::RawGeckoNode;
|
||||
pub type RawGeckoNodeBorrowedOrNull = *const root::RawGeckoNode;
|
||||
pub type RawGeckoElementBorrowed = *const root::RawGeckoElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue