mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Auto merge of #15682 - upsuper:arc-types, r=Manishearth
Simplify defining arc ffi types r? @Manishearth I don't have a good sense for creating syntax... so if you have any suggestion for the syntax of `impl_arc_ffi` macro, it would be appreciated. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15682) <!-- Reviewable:end -->
This commit is contained in:
commit
af292c4a71
6 changed files with 61 additions and 118 deletions
|
@ -232,17 +232,6 @@ impl AnimatedProperty {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
% if product == "gecko":
|
||||
use gecko_bindings::structs::RawServoAnimationValue;
|
||||
use gecko_bindings::sugar::ownership::{HasArcFFI, HasFFI};
|
||||
|
||||
unsafe impl HasFFI for AnimationValue {
|
||||
type FFIType = RawServoAnimationValue;
|
||||
}
|
||||
unsafe impl HasArcFFI for AnimationValue {}
|
||||
% endif
|
||||
|
||||
/// An enum to represent a single computed value belonging to an animated
|
||||
/// property in order to be interpolated with another one. When interpolating,
|
||||
/// both values need to belong to the same property.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue