Get the WebGeolocationClient from WebFrameClient instead of WebViewClient.

BUG=304341

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172912

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

git-svn-id: svn://svn.chromium.org/blink/trunk@175404 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Minimize calls to Node::nodeType() as it is virtual

Minimize calls to Node::nodeType() as it is virtual and there are sometimes
better alternative (i.e. Node flags). This patch leverages Node flags when
possible (using methods such as isElementNode(), isDocumentFragment(), ...). It
also caches the result of Node::nodeType() when suitable to avoid calling it
several times in a row.

R=eseidel@chromium.org

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

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