DescriptionMake 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
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169703
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|