Pull out EditorComponent::pollDOM method

This makes the actions that we perform in the poll loop explicit, and
will prevent the accumulation of polling-related behavior in the
::measureScrollView method.
Rename EditorComponent::measureScrollView to ::measureHeightAndWidth

Since we also check if we're auto-height in this method, this name seems
like a better description of the objectives of this method.