Minor clean-ups and optimizations of stroke hit-test code.