Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index b5065d4515e00e282c525ac9ab7a194550d63237..360136ffe07bf7e595cf5f5bd0748419e5092d2c 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -340,7 +340,7 @@ static bool isIntersectionOrEnclosureTarget(RenderObject* renderer) |
return renderer->isSVGShape() |
|| renderer->isSVGText() |
|| renderer->isSVGImage() |
- || renderer->node()->hasTagName(SVGNames::useTag); |
+ || isSVGUseElement(*renderer->node()); |
} |
bool SVGSVGElement::checkIntersectionOrEnclosure(const SVGElement& element, const FloatRect& rect, |