Bug 879130 - getTextBeforeOffset line end boundary is on new rails, r=tbsaunde