Fix ce#getOffset when cursor is to the left of an annotation.

The assumption is that we always enter a text node at the end, but
this is not true if we are moving right.

We also throw away the directionality after the first recursion,
it needs to passed through for stepping into nested elements.

Bug: 52517
Change-Id: I47b987fd692ab08d5a35210388fc05e11b6a60fa
Merge "Fix ce#getOffset when cursor is to the left of an annotation."