Round the line position to an integer for snap-to-lines cues

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24420