Specify accessibilityPath when setting frame.

Fixes #2860 

Minor code style changes.