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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 32f65ee11d237cc6bf9f1f6f254fe42d3129609c..a049d04325e2849b8ecedb9dc70ba5a42e46425b 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp
@@ -41,7 +41,6 @@
#include "platform/geometry/FloatPoint.h"
#include "platform/graphics/StrokeData.h"
#include "wtf/MathExtras.h"
-#include "wtf/PtrUtil.h"
namespace blink {
@@ -60,7 +59,7 @@ LayoutSVGShape::~LayoutSVGShape()
void LayoutSVGShape::createPath()
{
if (!m_path)
- m_path = wrapUnique(new Path());
+ m_path = adoptPtr(new Path());
*m_path = toSVGGeometryElement(element())->asPath();
if (m_rareData.get())
m_rareData->m_cachedNonScalingStrokePath.clear();
@@ -302,7 +301,7 @@ float LayoutSVGShape::strokeWidth() const
LayoutSVGShapeRareData& LayoutSVGShape::ensureRareData() const
{
if (!m_rareData)
- m_rareData = wrapUnique(new LayoutSVGShapeRareData());
+ m_rareData = adoptPtr(new LayoutSVGShapeRareData());
return *m_rareData.get();
}

Powered by Google App Engine
This is Rietveld 408576698