Add IsTransitionable FFI

This commit is contained in:
Brian Birtles 2017-06-15 10:20:46 +09:00
parent 479c3e4528
commit d249c61c0d
3 changed files with 22 additions and 0 deletions

View file

@ -702,6 +702,12 @@ pub extern "C" fn Servo_Property_IsAnimatable(property: nsCSSPropertyID) -> bool
animated_properties::nscsspropertyid_is_animatable(property)
}
#[no_mangle]
pub extern "C" fn Servo_Property_IsTransitionable(property: nsCSSPropertyID) -> bool {
use style::properties::animated_properties;
animated_properties::nscsspropertyid_is_transitionable(property)
}
#[no_mangle]
pub extern "C" fn Servo_Property_IsDiscreteAnimatable(property: nsCSSPropertyID) -> bool {
match AnimatableLonghand::from_nscsspropertyid(property) {