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

Unified Diff: third_party/WebKit/Source/core/animation/CSSImageInterpolationType.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/CSSImageInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp
index 60a9a0a307e516a777745541f555f427c018ef72..415a3889b65d815ab26047b474c6febbbe37deda 100644
--- a/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSImageInterpolationType.cpp
@@ -9,6 +9,8 @@
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/resolver/StyleResolverState.h"
#include "core/style/StyleImage.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -113,9 +115,9 @@ class UnderlyingImageChecker : public InterpolationType::ConversionChecker {
public:
~UnderlyingImageChecker() final {}
- static PassOwnPtr<UnderlyingImageChecker> create(const InterpolationValue& underlying)
+ static std::unique_ptr<UnderlyingImageChecker> create(const InterpolationValue& underlying)
{
- return adoptPtr(new UnderlyingImageChecker(underlying));
+ return wrapUnique(new UnderlyingImageChecker(underlying));
}
private:
@@ -151,9 +153,9 @@ class ParentImageChecker : public InterpolationType::ConversionChecker {
public:
~ParentImageChecker() final {}
- static PassOwnPtr<ParentImageChecker> create(CSSPropertyID property, StyleImage* inheritedImage)
+ static std::unique_ptr<ParentImageChecker> create(CSSPropertyID property, StyleImage* inheritedImage)
{
- return adoptPtr(new ParentImageChecker(property, inheritedImage));
+ return wrapUnique(new ParentImageChecker(property, inheritedImage));
}
private:

Powered by Google App Engine
This is Rietveld 408576698