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