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

Unified Diff: third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.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/CSSRotateInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp
index c060bcadc46716c5b9bca4ef705d168bc5c28601..d9eb7a8c6c20c28cf23c8afaa65c0b22bc4932f1 100644
--- a/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSRotateInterpolationType.cpp
@@ -7,6 +7,8 @@
#include "core/css/resolver/StyleBuilderConverter.h"
#include "platform/transforms/RotateTransformOperation.h"
#include "platform/transforms/Rotation.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -90,9 +92,9 @@ InterpolationValue convertRotation(const Rotation& rotation)
class InheritedRotationChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<InheritedRotationChecker> create(const Rotation& inheritedRotation)
+ static std::unique_ptr<InheritedRotationChecker> create(const Rotation& inheritedRotation)
{
- return adoptPtr(new InheritedRotationChecker(inheritedRotation));
+ return wrapUnique(new InheritedRotationChecker(inheritedRotation));
}
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue& underlying) const final

Powered by Google App Engine
This is Rietveld 408576698