Use new is*Element() helper functions in page/ code

Use new is*Element() helpers in page/ code. This makes the code clearer
and simpler.

R=eseidel, adamk
BUG=346095

Review URL: https://codereview.chromium.org/190953009

git-svn-id: svn://svn.chromium.org/blink/trunk@169058 bbb929c8-8fbe-4397-9dbb-9b2b20218538