diff options
author | Boris Chiou <boris.chiou@gmail.com> | 2017-04-21 11:30:56 +0800 |
---|---|---|
committer | Boris Chiou <boris.chiou@gmail.com> | 2017-04-21 11:58:57 +0800 |
commit | f8ac48b78d6d7eac6b732ddc8d0a0341ad7560df (patch) | |
tree | 5a058882b42c9d32d02118173e366e5940a19944 /components | |
parent | 57f87007f22e77bc857261f7be56fb359fd03837 (diff) | |
download | servo-f8ac48b78d6d7eac6b732ddc8d0a0341ad7560df.tar.gz servo-f8ac48b78d6d7eac6b732ddc8d0a0341ad7560df.zip |
Bug 1332633 - Part 2: Implement the FFI for compute distance.
This FFI will be used by nsDOMWindowUtils::ComputeAnimationDistance,
which will be implemented in another bug.
MozReview-Commit-ID: 6KmMmRiYIew
Diffstat (limited to 'components')
-rw-r--r-- | components/style/gecko_bindings/bindings.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/style/gecko_bindings/bindings.rs b/components/style/gecko_bindings/bindings.rs index 2ea1f286db5..603efb2b100 100644 --- a/components/style/gecko_bindings/bindings.rs +++ b/components/style/gecko_bindings/bindings.rs @@ -1754,6 +1754,13 @@ extern "C" { -> bool; } extern "C" { + pub fn Servo_AnimationValues_ComputeDistance(from: + RawServoAnimationValueBorrowed, + to: + RawServoAnimationValueBorrowed) + -> f64; +} +extern "C" { pub fn Servo_AnimationValue_Serialize(value: RawServoAnimationValueBorrowed, property: nsCSSPropertyID, |