Consolidate code that determines if element is clipped in view

This is for #5652.

This creates a new API call `ViewUtils.getElementClipSize()` which is now used by:
* `ViewUtils.scrollElementIntoView()`
* Context menus
* Quick View
* CSSInlineEditor New Rule dropdown list