Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
index a049d04325e2849b8ecedb9dc70ba5a42e46425b..32f65ee11d237cc6bf9f1f6f254fe42d3129609c 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp |
@@ -41,6 +41,7 @@ |
#include "platform/geometry/FloatPoint.h" |
#include "platform/graphics/StrokeData.h" |
#include "wtf/MathExtras.h" |
+#include "wtf/PtrUtil.h" |
namespace blink { |
@@ -59,7 +60,7 @@ LayoutSVGShape::~LayoutSVGShape() |
void LayoutSVGShape::createPath() |
{ |
if (!m_path) |
- m_path = adoptPtr(new Path()); |
+ m_path = wrapUnique(new Path()); |
*m_path = toSVGGeometryElement(element())->asPath(); |
if (m_rareData.get()) |
m_rareData->m_cachedNonScalingStrokePath.clear(); |
@@ -301,7 +302,7 @@ float LayoutSVGShape::strokeWidth() const |
LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const |
{ |
if (!m_rareData) |
- m_rareData = adoptPtr(new LayoutSVGShapeRareData()); |
+ m_rareData = wrapUnique(new LayoutSVGShapeRareData()); |
return *m_rareData.get(); |
} |