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

Unified Diff: third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.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/CSSPaintInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
index 33fb0e18335504b39d85f215b55abf74c5bf40a6..63b4938304a8ab7e4d726eddabd24cb71774a71f 100644
--- a/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSPaintInterpolationType.cpp
@@ -7,6 +7,8 @@
#include "core/animation/CSSColorInterpolationType.h"
#include "core/animation/PaintPropertyFunctions.h"
#include "core/css/resolver/StyleResolverState.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -25,13 +27,13 @@ InterpolationValue CSSPaintInterpolationType::maybeConvertInitial(const StyleRes
class ParentPaintChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<ParentPaintChecker> create(CSSPropertyID property, const StyleColor& color)
+ static std::unique_ptr<ParentPaintChecker> create(CSSPropertyID property, const StyleColor& color)
{
- return adoptPtr(new ParentPaintChecker(property, color));
+ return wrapUnique(new ParentPaintChecker(property, color));
}
- static PassOwnPtr<ParentPaintChecker> create(CSSPropertyID property)
+ static std::unique_ptr<ParentPaintChecker> create(CSSPropertyID property)
{
- return adoptPtr(new ParentPaintChecker(property));
+ return wrapUnique(new ParentPaintChecker(property));
}
private:
@@ -73,7 +75,7 @@ InterpolationValue CSSPaintInterpolationType::maybeConvertInherit(const StyleRes
InterpolationValue CSSPaintInterpolationType::maybeConvertValue(const CSSValue& value, const StyleResolverState&, ConversionCheckers&) const
{
- OwnPtr<InterpolableValue> interpolableColor = CSSColorInterpolationType::maybeCreateInterpolableColor(value);
+ std::unique_ptr<InterpolableValue> interpolableColor = CSSColorInterpolationType::maybeCreateInterpolableColor(value);
if (!interpolableColor)
return nullptr;
return InterpolationValue(std::move(interpolableColor));

Powered by Google App Engine
This is Rietveld 408576698