cssnumbervalue: Add early-outs to transition code
authorTimm Bäder <mail@baedert.org>
Wed, 8 Jan 2020 08:42:23 +0000 (09:42 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 18 Jan 2020 07:49:51 +0000 (08:49 +0100)
commite31c0898e56c6e940d26767ba15a589ac874700d
tree511eb2b5374007ee7ae39669b2ce6155a0c95c0d
parent1f2f2777e1231468f613a2936989ded060f4e2a6
cssnumbervalue: Add early-outs to transition code

we don't need to do the calculation at all if the progress is 0 or 1
anyway.

We also sometimes transition from 0 to 0 etc., so we can short-circuit
that as well by doing the fast pointer-equality check and relying on the
singletons.
gtk/gtkcssnumbervalue.c