mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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_.*");
|
.whitelisted_function("Gecko_.*");
|
||||||
let structs_types = [
|
let structs_types = [
|
||||||
"mozilla::css::URLValue",
|
"mozilla::css::URLValue",
|
||||||
|
"RawGeckoAnimationPropertySegment",
|
||||||
|
"RawGeckoComputedTiming",
|
||||||
"RawGeckoDocument",
|
"RawGeckoDocument",
|
||||||
"RawGeckoElement",
|
"RawGeckoElement",
|
||||||
"RawGeckoKeyframeList",
|
"RawGeckoKeyframeList",
|
||||||
|
@ -614,6 +616,7 @@ mod bindings {
|
||||||
"RefPtr",
|
"RefPtr",
|
||||||
"CSSPseudoClassType",
|
"CSSPseudoClassType",
|
||||||
"TraversalRootBehavior",
|
"TraversalRootBehavior",
|
||||||
|
"ComputedTimingFunction_BeforeFlag",
|
||||||
"FontFamilyList",
|
"FontFamilyList",
|
||||||
"FontFamilyType",
|
"FontFamilyType",
|
||||||
"Keyframe",
|
"Keyframe",
|
||||||
|
@ -714,7 +717,9 @@ mod bindings {
|
||||||
let servo_borrow_types = [
|
let servo_borrow_types = [
|
||||||
"nsCSSValue",
|
"nsCSSValue",
|
||||||
"nsTimingFunction",
|
"nsTimingFunction",
|
||||||
|
"RawGeckoAnimationPropertySegment",
|
||||||
"RawGeckoAnimationValueList",
|
"RawGeckoAnimationValueList",
|
||||||
|
"RawGeckoComputedTiming",
|
||||||
"RawGeckoKeyframeList",
|
"RawGeckoKeyframeList",
|
||||||
"RawGeckoComputedKeyframeValuesList",
|
"RawGeckoComputedKeyframeValuesList",
|
||||||
"RawGeckoFontFaceRuleList",
|
"RawGeckoFontFaceRuleList",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue