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

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

Powered by Google App Engine
This is Rietveld 408576698