mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Add FFI functions to get progress value and current position in a segment.
Two functions added in this patch get progress value from ComputedTiming or get the position in a given AnimationPropertySegment. Without these FFIs, we need to expose Maybe<> and Nullable<> and handle them in Rust.
This commit is contained in:
parent
f1d3f23bfa
commit
56dc7294e5
1 changed files with 5 additions and 0 deletions
|
@ -597,6 +597,8 @@ mod bindings {
|
|||
.whitelisted_function("Gecko_.*");
|
||||
let structs_types = [
|
||||
"mozilla::css::URLValue",
|
||||
"RawGeckoAnimationPropertySegment",
|
||||
"RawGeckoComputedTiming",
|
||||
"RawGeckoDocument",
|
||||
"RawGeckoElement",
|
||||
"RawGeckoKeyframeList",
|
||||
|
@ -614,6 +616,7 @@ mod bindings {
|
|||
"RefPtr",
|
||||
"CSSPseudoClassType",
|
||||
"TraversalRootBehavior",
|
||||
"ComputedTimingFunction_BeforeFlag",
|
||||
"FontFamilyList",
|
||||
"FontFamilyType",
|
||||
"Keyframe",
|
||||
|
@ -714,7 +717,9 @@ mod bindings {
|
|||
let servo_borrow_types = [
|
||||
"nsCSSValue",
|
||||
"nsTimingFunction",
|
||||
"RawGeckoAnimationPropertySegment",
|
||||
"RawGeckoAnimationValueList",
|
||||
"RawGeckoComputedTiming",
|
||||
"RawGeckoKeyframeList",
|
||||
"RawGeckoComputedKeyframeValuesList",
|
||||
"RawGeckoFontFaceRuleList",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue