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

Unified Diff: third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.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/CSSMotionRotationInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp
index 4f504951cf0003a896d365afdcc888ea520ccb3c..3a55984b9c7617f863823e2f5efdb6867d5ce0ab 100644
--- a/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp
@@ -6,6 +6,8 @@
#include "core/css/resolver/StyleBuilderConverter.h"
#include "core/style/StyleMotionRotation.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -37,9 +39,9 @@ namespace {
class UnderlyingRotationTypeChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<UnderlyingRotationTypeChecker> create(MotionRotationType underlyingRotationType)
+ static std::unique_ptr<UnderlyingRotationTypeChecker> create(MotionRotationType underlyingRotationType)
{
- return adoptPtr(new UnderlyingRotationTypeChecker(underlyingRotationType));
+ return wrapUnique(new UnderlyingRotationTypeChecker(underlyingRotationType));
}
bool isValid(const InterpolationEnvironment&, const InterpolationValue& underlying) const final
@@ -57,9 +59,9 @@ private:
class InheritedRotationTypeChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<InheritedRotationTypeChecker> create(MotionRotationType inheritedRotationType)
+ static std::unique_ptr<InheritedRotationTypeChecker> create(MotionRotationType inheritedRotationType)
{
- return adoptPtr(new InheritedRotationTypeChecker(inheritedRotationType));
+ return wrapUnique(new InheritedRotationTypeChecker(inheritedRotationType));
}
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue& underlying) const final

Powered by Google App Engine
This is Rietveld 408576698