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:
Emilio Cobos Álvarez 2018-06-01 16:34:08 +02:00
parent 35a1a30f6b
commit 6940787916
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
6 changed files with 86 additions and 43 deletions

View file

@ -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| {