Add a routine to clear the direction set by a textnode without resetting it. Bug 894137, a=abillings