[web-animations] Make a few tweaks to motion path algorithms

--HG--
extra : rebase_source : ecbb5044337a52e34baf84697416ecc3dfb53967