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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.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/CSSTransformInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
index b44eb4033cd4073c19683011113102bf73036201..f938343dcf0bc0eae07178cf4f3fdeb7b8c5ae13 100644
--- a/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTransformInterpolationType.cpp
@@ -12,6 +12,8 @@
#include "core/css/resolver/TransformBuilder.h"
#include "platform/transforms/TransformOperations.h"
#include "platform/transforms/TranslateTransformOperation.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -107,9 +109,9 @@ InterpolationValue convertTransform(const TransformOperations& transform)
class InheritedTransformChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<InheritedTransformChecker> create(const TransformOperations& inheritedTransform)
+ static std::unique_ptr<InheritedTransformChecker> create(const TransformOperations& inheritedTransform)
{
- return adoptPtr(new InheritedTransformChecker(inheritedTransform));
+ return wrapUnique(new InheritedTransformChecker(inheritedTransform));
}
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue& underlying) const final
@@ -160,7 +162,7 @@ InterpolationValue CSSTransformInterpolationType::maybeConvertValue(const CSSVal
primitiveValue.accumulateLengthArray(lengthArray);
}
}
- OwnPtr<InterpolationType::ConversionChecker> lengthUnitsChecker = LengthUnitsChecker::maybeCreate(std::move(lengthArray), state);
+ std::unique_ptr<InterpolationType::ConversionChecker> lengthUnitsChecker = LengthUnitsChecker::maybeCreate(std::move(lengthArray), state);
if (lengthUnitsChecker)
conversionCheckers.append(std::move(lengthUnitsChecker));

Powered by Google App Engine
This is Rietveld 408576698