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

Unified Diff: third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.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/animation/CSSBasicShapeInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp
index 717908360ccb804e0d32218078e0c61f61883496..4ac573a3be86d23181237fedd371cc7ca6e9ae1b 100644
--- a/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSBasicShapeInterpolationType.cpp
@@ -10,6 +10,8 @@
#include "core/css/resolver/StyleResolverState.h"
#include "core/style/BasicShapes.h"
#include "core/style/DataEquivalency.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -17,9 +19,9 @@ namespace {
class UnderlyingCompatibilityChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<UnderlyingCompatibilityChecker> create(PassRefPtr<NonInterpolableValue> underlyingNonInterpolableValue)
+ static std::unique_ptr<UnderlyingCompatibilityChecker> create(PassRefPtr<NonInterpolableValue> underlyingNonInterpolableValue)
{
- return adoptPtr(new UnderlyingCompatibilityChecker(underlyingNonInterpolableValue));
+ return wrapUnique(new UnderlyingCompatibilityChecker(underlyingNonInterpolableValue));
}
private:
@@ -37,9 +39,9 @@ private:
class InheritedShapeChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<InheritedShapeChecker> create(CSSPropertyID property, PassRefPtr<BasicShape> inheritedShape)
+ static std::unique_ptr<InheritedShapeChecker> create(CSSPropertyID property, PassRefPtr<BasicShape> inheritedShape)
{
- return adoptPtr(new InheritedShapeChecker(property, inheritedShape));
+ return wrapUnique(new InheritedShapeChecker(property, inheritedShape));
}
private:

Powered by Google App Engine
This is Rietveld 408576698