Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698