Index: Source/core/svg/SVGImageLoader.cpp |
diff --git a/Source/core/svg/SVGImageLoader.cpp b/Source/core/svg/SVGImageLoader.cpp |
index e4a333fd30e9a08f34cbba9b4239ee1f0ea23f7b..1cbd94fc0bd205ea127afa54fa120509115f295d 100644 |
--- a/Source/core/svg/SVGImageLoader.cpp |
+++ b/Source/core/svg/SVGImageLoader.cpp |
@@ -40,7 +40,7 @@ void SVGImageLoader::dispatchLoadEvent() |
if (image()->errorOccurred()) |
element()->dispatchEvent(Event::create(eventNames().errorEvent, false, false)); |
else { |
- SVGImageElement* imageElement = static_cast<SVGImageElement*>(element()); |
+ SVGImageElement* imageElement = toSVGImageElement(element()); |
if (imageElement->externalResourcesRequiredBaseValue()) |
imageElement->sendSVGLoadEventIfPossible(true); |
} |