mirror of
https://github.com/servo/servo.git
synced 2025-09-01 18:48:23 +01:00
Add IsTransitionable FFI
This commit is contained in:
parent
479c3e4528
commit
d249c61c0d
3 changed files with 22 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue