mirror of
https://github.com/servo/servo.git
synced 2025-08-28 08:38:20 +01:00
style: Make the transition-property code make more sense.
We were working around the lack of alias support during parsing in TransitionProperty by doing a Gecko lookup. That's a hack and is now gone. Bug: 1419695 Reviewed-by: xidorn MozReview-Commit-ID: EptUvJNTrZr
This commit is contained in:
parent
35a1a30f6b
commit
6940787916
6 changed files with 86 additions and 43 deletions
|
@ -303,7 +303,8 @@ impl PropertyAnimation {
|
|||
let duration = box_style.transition_duration_mod(transition_index);
|
||||
|
||||
match transition_property {
|
||||
TransitionProperty::Unsupported(_) => result,
|
||||
TransitionProperty::Custom(..) |
|
||||
TransitionProperty::Unsupported(..) => result,
|
||||
TransitionProperty::Shorthand(ref shorthand_id) => shorthand_id
|
||||
.longhands()
|
||||
.filter_map(|longhand| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue