Move is_discrete from TransitionProperty to AnimatableLonghand

This commit is contained in:
Brian Birtles 2017-06-15 10:19:22 +09:00
parent a2307adf46
commit 5ce7b1cc55
3 changed files with 21 additions and 21 deletions

View file

@ -1130,14 +1130,14 @@ impl<'le> TElement for GeckoElement<'le> {
-> bool {
use properties::animated_properties::AnimatedProperty;
// We don't allow transitions on properties that are not interpolable.
if property.is_discrete() {
return false;
}
// |property| should be an animatable longhand
let animatable_longhand = AnimatableLonghand::from_transition_property(property).unwrap();
// We don't allow transitions on properties that are not interpolable.
if animatable_longhand.is_discrete() {
return false;
}
if existing_transitions.contains_key(property) {
// If there is an existing transition, update only if the end value differs.
// If the end value has not changed, we should leave the currently running