Index: Source/core/svg/SVGElement.cpp |
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp |
index e15f3ebca8c4fd7d63b15ca7d4ecf2d4776db3eb..28a758f8b8831c585a64e8678b17cfabe3d51616 100644 |
--- a/Source/core/svg/SVGElement.cpp |
+++ b/Source/core/svg/SVGElement.cpp |
@@ -872,7 +872,7 @@ void SVGElement::sendSVGLoadEventIfPossible(bool sendParentLoadEvents) |
if (hasLoadListener(currentTarget.get())) |
currentTarget->dispatchEvent(Event::create(EventTypeNames::load)); |
currentTarget = (parent && parent->isSVGElement()) ? static_pointer_cast<SVGElement>(parent) : RefPtr<SVGElement>(); |
- SVGElement* element = toSVGElement(currentTarget.get()); |
+ SVGElement* element = currentTarget.get(); |
if (!element || !element->isOutermostSVGSVGElement()) |
continue; |