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

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

Powered by Google App Engine
This is Rietveld 408576698