Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
index a9c337e811f1c5445fbb2d412d4c37a46a0433a5..5ab8dea09e29cd01eafe1ba84d7d8b61ebf419f9 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -527,7 +527,7 @@ void writeSVGResourceContainer(TextStream& ts, const RenderObject& object, int i |
// Dump final results that are used for rendering. No use in asking SVGPatternElement for its patternUnits(), as it may |
// link to other patterns using xlink:href, we need to build the full inheritance chain, aka. collectPatternProperties() |
PatternAttributes attributes; |
- static_cast<SVGPatternElement*>(pattern->node())->collectPatternAttributes(attributes); |
+ toSVGPatternElement(pattern->node())->collectPatternAttributes(attributes); |
writeNameValuePair(ts, "patternUnits", attributes.patternUnits()); |
writeNameValuePair(ts, "patternContentUnits", attributes.patternContentUnits()); |