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

Unified Diff: third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.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/CSSTextIndentInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
index 4cf925d7891f4d170425dfa1d2678900808437a0..019fe0899bf15c9c1edaf561763a3922f43606e2 100644
--- a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp
@@ -9,6 +9,8 @@
#include "core/css/CSSValueList.h"
#include "core/css/resolver/StyleResolverState.h"
#include "core/style/ComputedStyle.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -63,9 +65,9 @@ namespace {
class UnderlyingIndentModeChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<UnderlyingIndentModeChecker> create(const IndentMode& mode)
+ static std::unique_ptr<UnderlyingIndentModeChecker> create(const IndentMode& mode)
{
- return adoptPtr(new UnderlyingIndentModeChecker(mode));
+ return wrapUnique(new UnderlyingIndentModeChecker(mode));
}
bool isValid(const InterpolationEnvironment&, const InterpolationValue& underlying) const final
@@ -83,9 +85,9 @@ private:
class InheritedIndentModeChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<InheritedIndentModeChecker> create(const IndentMode& mode)
+ static std::unique_ptr<InheritedIndentModeChecker> create(const IndentMode& mode)
{
- return adoptPtr(new InheritedIndentModeChecker(mode));
+ return wrapUnique(new InheritedIndentModeChecker(mode));
}
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue&) const final

Powered by Google App Engine
This is Rietveld 408576698