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:
Hiroyuki Ikezoe 2017-04-06 10:03:22 +09:00
parent f1d3f23bfa
commit 56dc7294e5

View file

@ -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",