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

Unified Diff: third_party/WebKit/Source/core/animation/LengthUnitsChecker.h

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/LengthUnitsChecker.h
diff --git a/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h b/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h
index 65570c489bd4e26a947c56f9d7b54497300560e5..67fbe708848c7e03ce70de4d1d4679e9ee48908f 100644
--- a/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h
+++ b/third_party/WebKit/Source/core/animation/LengthUnitsChecker.h
@@ -8,12 +8,14 @@
#include "core/animation/InterpolationType.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/resolver/StyleResolverState.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
class LengthUnitsChecker : public InterpolationType::ConversionChecker {
public:
- static PassOwnPtr<LengthUnitsChecker> maybeCreate(CSSLengthArray&& lengthArray, const StyleResolverState& state)
+ static std::unique_ptr<LengthUnitsChecker> maybeCreate(CSSLengthArray&& lengthArray, const StyleResolverState& state)
{
bool create = false;
size_t lastIndex = 0;
@@ -26,7 +28,7 @@ public:
}
if (!create)
return nullptr;
- return adoptPtr(new LengthUnitsChecker(std::move(lengthArray), lastIndex));
+ return wrapUnique(new LengthUnitsChecker(std::move(lengthArray), lastIndex));
}
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue& underlying) const final

Powered by Google App Engine
This is Rietveld 408576698