Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
index 85eee8f1119c5f020f3054ce3fd9f77816552c61..80d9dd2ebb5b528bee8feadaabf39c8b3257f634 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -487,7 +487,7 @@ void writeSVGResourceContainer(TextStream& ts, const RenderObject& object, int i |
ASSERT(resource); |
if (resource->resourceType() == MaskerResourceType) { |
- RenderSVGResourceMasker* masker = static_cast<RenderSVGResourceMasker*>(resource); |
+ RenderSVGResourceMasker* masker = toRenderSVGResourceMasker(resource); |
writeNameValuePair(ts, "maskUnits", masker->maskUnits()); |
writeNameValuePair(ts, "maskContentUnits", masker->maskContentUnits()); |
ts << "\n"; |