Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
index 968eb23cb9a458b2a84c6f9d1035336f2fe5f63a..ab5fe5b33bad1be30c7c72d33cc3e8971d0c3285 100644 |
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp |
@@ -67,6 +67,7 @@ |
#include "core/svg/SVGStopElement.h" |
#include <math.h> |
+#include <memory> |
namespace WebCore { |
@@ -483,7 +484,7 @@ void writeSVGResourceContainer(TextStream& ts, const RenderObject& object, int i |
const AtomicString& id = element->getIdAttribute(); |
writeNameAndQuotedValue(ts, "id", id); |
- RenderSVGResourceContainer* resource = const_cast<RenderObject&>(object).toRenderSVGResourceContainer(); |
+ RenderSVGResourceContainer* resource = toRenderSVGResourceContainer(const_cast<RenderObject*>(&object)); |
ASSERT(resource); |
if (resource->resourceType() == MaskerResourceType) { |