cssanimation: Compute progress correctly

Desktop / GNOME / GTK - Benjamin Otte [redhat.com] - 11 March 2016 09:39 UTC

We were computing the wrong progress, in particular when the iteration count was non-integer.

Test included.

b728559 cssanimation: Compute progress correctly
gtk/gtkcssanimation.c | 40 +-
testsuite/reftests/Makefile.am | 3 +
.../animation-fill-mode-iteration-count.css | 83 ++
.../animation-fill-mode-iteration-count.ref.ui | 1117 ++++++++++++++++++
.../animation-fill-mode-iteration-count.ui | 1213 ++++++++++++++++++++
5 files changed, 2435 insertions(+), 21 deletions(-)

Upstream: git.gnome.org


  • Share