Make Traversal<SVGElement> API a little bit more efficient
Make Traversal<SVGElement> API a little bit more efficient

Make Traversal<SVGElement> API a little bit more efficient by specializing the
following templated function for SVGElement:
template <typename T> inline bool isElementOfType(const Node& node);

It leverages the fact that Node has an IsSVGFlag flag and we can call
Node::isSVGElement() directly on the input Node. Without this specialization,
the default template implementation would do the following check:
- node.isElementNode() && toElement(node).isSVGElement()

We thus bypass the redundant Node::isElementNode() call.

R=pdr
BUG=346733

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

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@169703 bbb929c8-8fbe-4397-9dbb-9b2b20218538

primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs