Specify accessibilityPath when setting frame.

Closes #2860 

Plus minor code style changes.