Index: Source/core/dom/EventRetargeter.h |
diff --git a/Source/core/dom/EventRetargeter.h b/Source/core/dom/EventRetargeter.h |
index f274e704375a93ed83cbde5d3f4024c5ce167ce2..f2e66ca34f8f2dee3ced1018ce308288366a088c 100644 |
--- a/Source/core/dom/EventRetargeter.h |
+++ b/Source/core/dom/EventRetargeter.h |
@@ -85,7 +85,7 @@ inline EventTarget* EventRetargeter::eventTargetRespectingTargetRules(Node* refe |
// At this time, SVG nodes are not supported in non-<use> shadow trees. |
if (!shadowHostElement || !shadowHostElement->hasTagName(SVGNames::useTag)) |
return referenceNode; |
- SVGUseElement* useElement = static_cast<SVGUseElement*>(shadowHostElement); |
+ SVGUseElement* useElement = toSVGUseElement(shadowHostElement); |
if (SVGElementInstance* instance = useElement->instanceForShadowTreeElement(referenceNode)) |
return instance; |