From 56dc7294e5f2d54fe2f885ba63227efbd7ec4df5 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Thu, 6 Apr 2017 10:03:22 +0900 Subject: [PATCH] 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. --- components/style/build_gecko.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 307d7f7216c..46835f7d268 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -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",