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

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

Powered by Google App Engine
This is Rietveld 408576698