Index: Source/core/svg/SVGUseElement.cpp |
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp |
index 2821732172c69035ea06fa52301ad2e028cea352..6a1ec89f8d4844473c9ffc917fc39e9405ac635c 100644 |
--- a/Source/core/svg/SVGUseElement.cpp |
+++ b/Source/core/svg/SVGUseElement.cpp |
@@ -928,10 +928,10 @@ bool SVGUseElement::selfHasRelativeLengths() const |
return false; |
SVGElement* element = m_targetElementInstance->correspondingElement(); |
- if (!element || !element->isSVGStyledElement()) |
+ if (!element) |
return false; |
- return toSVGStyledElement(element)->hasRelativeLengths(); |
+ return toSVGElement(element)->hasRelativeLengths(); |
} |
void SVGUseElement::notifyFinished(Resource* resource) |