[webcrypto] Fix a bad test.

The test was throwing an exception due to a syntax error.

BUG=245025

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163284 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change isBlock and isInline functions to check for isElementNode

Simple refactoring to add isElementNode check in isBlock and isInline functions.
Also removed isElementNode check from enclosingBlock.

Webkit bug pointing the same - https://bugs.webkit.org/show_bug.cgi?id=86106

TEST=Refactoring, no behavior change.

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

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