instance method Element#measure

Useful for one-off measurements of elements. If you find yourself
calling this method frequently over short spans of code, you might want
to call Element.getLayout and operate on the Element.Layout
object itself (thereby taking advantage of measurement caching).