Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
index dc1971e5a07272ae7e09418e0082368dc18cb6e5..2ac4a3465b3dcd6c784eb332f25e5ab9617a53bc 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -282,7 +282,7 @@ static void writeStyle(TextStream& ts, const RenderObject& object) |
ASSERT(shape.element()); |
bool hasFallback; |
- if (RenderSVGResource* strokePaintingResource = RenderSVGResource::requestPaintingResource(ApplyToStrokeMode, const_cast<RenderSVGShape*>(&shape), shape.style(), hasFallback)) { |
+ if (RenderSVGResource* strokePaintingResource = RenderSVGResource::requestPaintingResource(ApplyToStrokeMode, shape, shape.style(), hasFallback)) { |
TextStreamSeparator s(" "); |
ts << " [stroke={" << s; |
writeSVGPaintingResource(ts, strokePaintingResource); |
@@ -310,7 +310,7 @@ static void writeStyle(TextStream& ts, const RenderObject& object) |
ts << "}]"; |
} |
- if (RenderSVGResource* fillPaintingResource = RenderSVGResource::requestPaintingResource(ApplyToFillMode, const_cast<RenderSVGShape*>(&shape), shape.style(), hasFallback)) { |
+ if (RenderSVGResource* fillPaintingResource = RenderSVGResource::requestPaintingResource(ApplyToFillMode, shape, shape.style(), hasFallback)) { |
TextStreamSeparator s(" "); |
ts << " [fill={" << s; |
writeSVGPaintingResource(ts, fillPaintingResource); |