Index: Source/core/svg/SVGElement.cpp |
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp |
index 9ee22a99ad5ae648fb79d668c543cdea26dd2cad..9fa1de01057af09c836785a03b399fa29654c7c1 100644 |
--- a/Source/core/svg/SVGElement.cpp |
+++ b/Source/core/svg/SVGElement.cpp |
@@ -250,7 +250,7 @@ String SVGElement::title() const |
// that do enable SVG in a shadow tree. |
ASSERT(!shadowHostElement || shadowHostElement->hasTagName(SVGNames::useTag)); |
if (shadowHostElement && shadowHostElement->hasTagName(SVGNames::useTag)) { |
- SVGUseElement* useElement = static_cast<SVGUseElement*>(shadowHostElement); |
+ SVGUseElement* useElement = toSVGUseElement(shadowHostElement); |
// If the <use> title is not empty we found the title to use. |
String useTitle(useElement->title()); |