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

Unified Diff: third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.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/CSSScaleInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
index 1c4bb4ee42ddd4cfe8af159d2b9390ded92468eb..8ff23f43e93edcb4384d077805b7db0a9e7dd758 100644
--- a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp
@@ -7,6 +7,8 @@
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSValueList.h"
#include "core/css/resolver/StyleResolverState.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -37,9 +39,9 @@ struct Scale {
array[2] = z;
}
- PassOwnPtr<InterpolableValue> createInterpolableValue() const
+ std::unique_ptr<InterpolableValue> createInterpolableValue() const
{
- OwnPtr<InterpolableList> result = InterpolableList::create(3);
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(3);
for (size_t i = 0; i < 3; i++)
result->set(i, InterpolableNumber::create(array[i]));
return std::move(result);
@@ -59,9 +61,9 @@ struct Scale {
class ParentScaleChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<ParentScaleChecker> create(const Scale& scale)
+ static std::unique_ptr<ParentScaleChecker> create(const Scale& scale)
{
- return adoptPtr(new ParentScaleChecker(scale));
+ return wrapUnique(new ParentScaleChecker(scale));
}
private:

Powered by Google App Engine
This is Rietveld 408576698