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

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

Powered by Google App Engine
This is Rietveld 408576698