The number-of-pieces approach the old implementation had lead to too much
accumulated rounding error, causing periodic truncated dashes. This
lead to lines falling out of their periodic pattern, breaking the clipping
tricks gecko applies downstream.