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

Unified Diff: third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.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/CSSShadowListInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp
index 1a08cd58b969787ab368cafec9e67cb8f8cda66d..eff2bd9a4827e2f10b3f4bf602258aa95f5206b4 100644
--- a/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp
@@ -11,6 +11,8 @@
#include "core/css/resolver/StyleBuilder.h"
#include "core/css/resolver/StyleResolverState.h"
#include "core/style/ShadowList.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -41,9 +43,9 @@ InterpolationValue CSSShadowListInterpolationType::maybeConvertInitial(const Sty
class ParentShadowListChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<ParentShadowListChecker> create(CSSPropertyID property, PassRefPtr<ShadowList> shadowList)
+ static std::unique_ptr<ParentShadowListChecker> create(CSSPropertyID property, PassRefPtr<ShadowList> shadowList)
{
- return adoptPtr(new ParentShadowListChecker(property, shadowList));
+ return wrapUnique(new ParentShadowListChecker(property, shadowList));
}
private:

Powered by Google App Engine
This is Rietveld 408576698