consolidate code that determines if element is clipped in view
merge with master
update comments
improve comments
Merge pull request #5976 from adobe/randy/issue-5652

Consolidate code that determines if element is clipped in view