mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Use AnimatableLonghand for AnimationValueMap and related code
In the next few patches we move all non-transition related code over to using AnimatableLonghand instead of TransitionProperty. This will allow us to re-purpose TransitionProperty to represent only properties that can be transitioned (i.e. excluding discrete properties) as well as simplifying the code by removing the need to deal with shorthands and the "all" value in places that do not need to handle those values.
This commit is contained in:
parent
9c3c954aa2
commit
8f3dad598f
8 changed files with 175 additions and 99 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use style::properties::{PropertyDeclaration, PropertyDeclarationBlock, Importance};
|
||||
use style::properties::animated_properties::TransitionProperty;
|
||||
use style::properties::animated_properties::AnimatableLonghand;
|
||||
use style::shared_lock::SharedRwLock;
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::keyframes_rule::{Keyframe, KeyframesAnimation, KeyframePercentage, KeyframeSelector};
|
||||
|
@ -100,7 +100,7 @@ fn test_missing_property_in_initial_keyframe() {
|
|||
declared_timing_function: false,
|
||||
},
|
||||
],
|
||||
properties_changed: vec![TransitionProperty::Width, TransitionProperty::Height],
|
||||
properties_changed: vec![AnimatableLonghand::Width, AnimatableLonghand::Height],
|
||||
vendor_prefix: None,
|
||||
};
|
||||
|
||||
|
@ -160,7 +160,7 @@ fn test_missing_property_in_final_keyframe() {
|
|||
declared_timing_function: false,
|
||||
},
|
||||
],
|
||||
properties_changed: vec![TransitionProperty::Width, TransitionProperty::Height],
|
||||
properties_changed: vec![AnimatableLonghand::Width, AnimatableLonghand::Height],
|
||||
vendor_prefix: None,
|
||||
};
|
||||
|
||||
|
@ -222,7 +222,7 @@ fn test_missing_keyframe_in_both_of_initial_and_final_keyframe() {
|
|||
declared_timing_function: false,
|
||||
}
|
||||
],
|
||||
properties_changed: vec![TransitionProperty::Width, TransitionProperty::Height],
|
||||
properties_changed: vec![AnimatableLonghand::Width, AnimatableLonghand::Height],
|
||||
vendor_prefix: None,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue