Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstyle: Some animation cleanups and fixes. #20757
Conversation
highfive
commented
May 6, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
May 6, 2018
|
r? @nox or @SimonSapin or @mbrubeck |
|
@bors-servo try |
style: Some animation cleanups and fixes. The transitions code is still terribly broken, but I ran out of time fixing it. We have nothing that stops transitions, which is just plain wrong. Most of this code should probably be rewritten, since with the current setup is pretty hard to get it right. Anyway... Fixes #20731. Fixes #20116. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20757) <!-- Reviewable:end -->
|
|
|
In
In
|
| @@ -207,7 +207,7 @@ pub enum Animation { | |||
| /// the f64 field is the start time as returned by `time::precise_time_s()`. | |||
| /// | |||
| /// The `bool` field is werther this animation should no longer run. | |||
This comment has been minimized.
This comment has been minimized.
| % endif | ||
| % if prop.animatable: | ||
| AnimatedProperty::${prop.camel_case}(..) => LonghandId::${prop.camel_case}, | ||
| % endif |
This comment has been minimized.
This comment has been minimized.
nox
May 10, 2018
Member
I wonder if AnimatedProperty should use the same trick as AnimationValue to just read the discriminant value as the LonghandId result.
|
@emilio do you need help pushing that to the finish line? |
|
|
The last caller who used was #14418, which did fix a problem but introduced multiple. In particular, now transitions don't get expired ever, until they finish running of course. That is not ok, given you can have something that the user can trigger to change the style (hi, :hover, for example), and right now that triggers new transitions, getting this into a really funny state. I should give fixing this a shot, but it's non-trivial at all.
|
@bors-servo try |
style: Some animation cleanups and fixes. The transitions code is still terribly broken, but I ran out of time fixing it. We have nothing that stops transitions, which is just plain wrong. Most of this code should probably be rewritten, since with the current setup is pretty hard to get it right. Anyway... Fixes #20731. Fixes #20116. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20757) <!-- Reviewable:end -->
style: Some animation cleanups and fixes. The transitions code is still terribly broken, but I ran out of time fixing it. We have nothing that stops transitions, which is just plain wrong. Most of this code should probably be rewritten, since with the current setup is pretty hard to get it right. Anyway... Fixes #20731. Fixes #20116. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20757) <!-- Reviewable:end -->
|
|
This cherry-picks part of servo/servo#20757.
… r=emilio The last caller who used was #14418, which did fix a problem but introduced multiple. In particular, now transitions don't get expired ever, until they finish running of course. That is not ok, given you can have something that the user can trigger to change the style (hi, :hover, for example), and right now that triggers new transitions, getting this into a really funny state. I should give fixing this a shot, but it's non-trivial at all. This cherry-picks part of servo/servo#20757.
…y the style. r=emilio It's a long way to make this sound in general... Fixes #20731 This cherry-picks part of servo/servo#20757.
Transitions are still broken, but I found these messages more helpful than the previous ones when diagnosing problems. This cherry-picks part of servo/servo#20757.
This cherry-picks part of servo/servo#20757.
… r=emilio The last caller who used was #14418, which did fix a problem but introduced multiple. In particular, now transitions don't get expired ever, until they finish running of course. That is not ok, given you can have something that the user can trigger to change the style (hi, :hover, for example), and right now that triggers new transitions, getting this into a really funny state. I should give fixing this a shot, but it's non-trivial at all. This cherry-picks part of servo/servo#20757.
…y the style. r=emilio It's a long way to make this sound in general... Fixes #20731 This cherry-picks part of servo/servo#20757.
Transitions are still broken, but I found these messages more helpful than the previous ones when diagnosing problems. This cherry-picks part of servo/servo#20757.
This cherry-picks part of servo/servo#20757. UltraBlame original commit: bfac8c708a3f50ed6cb301548edec21b097c0a7f
… r=emilio The last caller who used was #14418, which did fix a problem but introduced multiple. In particular, now transitions don't get expired ever, until they finish running of course. That is not ok, given you can have something that the user can trigger to change the style (hi, :hover, for example), and right now that triggers new transitions, getting this into a really funny state. I should give fixing this a shot, but it's non-trivial at all. This cherry-picks part of servo/servo#20757. UltraBlame original commit: 6d0c84abdfa1d1b5e64e78a1826762e110c7ea57
…y the style. r=emilio It's a long way to make this sound in general... Fixes #20731 This cherry-picks part of servo/servo#20757. UltraBlame original commit: 7037075929099a8d88ef702257e88d15cbe3ab59
Transitions are still broken, but I found these messages more helpful than the previous ones when diagnosing problems. This cherry-picks part of servo/servo#20757. UltraBlame original commit: 99cc3c6f76ef81913aea6d0a7d785e02e55f4648
This cherry-picks part of servo/servo#20757. UltraBlame original commit: bfac8c708a3f50ed6cb301548edec21b097c0a7f
… r=emilio The last caller who used was #14418, which did fix a problem but introduced multiple. In particular, now transitions don't get expired ever, until they finish running of course. That is not ok, given you can have something that the user can trigger to change the style (hi, :hover, for example), and right now that triggers new transitions, getting this into a really funny state. I should give fixing this a shot, but it's non-trivial at all. This cherry-picks part of servo/servo#20757. UltraBlame original commit: 6d0c84abdfa1d1b5e64e78a1826762e110c7ea57
…y the style. r=emilio It's a long way to make this sound in general... Fixes #20731 This cherry-picks part of servo/servo#20757. UltraBlame original commit: 7037075929099a8d88ef702257e88d15cbe3ab59
Transitions are still broken, but I found these messages more helpful than the previous ones when diagnosing problems. This cherry-picks part of servo/servo#20757. UltraBlame original commit: 99cc3c6f76ef81913aea6d0a7d785e02e55f4648
This cherry-picks part of servo/servo#20757. UltraBlame original commit: bfac8c708a3f50ed6cb301548edec21b097c0a7f
… r=emilio The last caller who used was #14418, which did fix a problem but introduced multiple. In particular, now transitions don't get expired ever, until they finish running of course. That is not ok, given you can have something that the user can trigger to change the style (hi, :hover, for example), and right now that triggers new transitions, getting this into a really funny state. I should give fixing this a shot, but it's non-trivial at all. This cherry-picks part of servo/servo#20757. UltraBlame original commit: 6d0c84abdfa1d1b5e64e78a1826762e110c7ea57
…y the style. r=emilio It's a long way to make this sound in general... Fixes #20731 This cherry-picks part of servo/servo#20757. UltraBlame original commit: 7037075929099a8d88ef702257e88d15cbe3ab59
Transitions are still broken, but I found these messages more helpful than the previous ones when diagnosing problems. This cherry-picks part of servo/servo#20757. UltraBlame original commit: 99cc3c6f76ef81913aea6d0a7d785e02e55f4648
emilio commentedMay 6, 2018
•
edited by SimonSapin
The transitions code is still terribly broken, but I ran out of time fixing it. We have nothing that stops transitions, which is just plain wrong. Most of this code should probably be rewritten, since with the current setup is pretty hard to get it right. Anyway...
Fixes #20731.
Fixes #20116.
This change is