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

Unified Diff: third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.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/CSSBorderImageLengthBoxInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp
index 3ff1615dd05ac73ed280312b5c208ca78d9967a0..e3247cc714a3d5967a264f832e8d35ad9c1605f6 100644
--- a/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSBorderImageLengthBoxInterpolationType.cpp
@@ -8,8 +8,6 @@
#include "core/animation/CSSLengthInterpolationType.h"
#include "core/css/CSSQuadValue.h"
#include "core/css/resolver/StyleResolverState.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -86,9 +84,9 @@ namespace {
class UnderlyingSideNumbersChecker : public InterpolationType::ConversionChecker {
public:
- static std::unique_ptr<UnderlyingSideNumbersChecker> create(const SideNumbers& underlyingSideNumbers)
+ static PassOwnPtr<UnderlyingSideNumbersChecker> create(const SideNumbers& underlyingSideNumbers)
{
- return wrapUnique(new UnderlyingSideNumbersChecker(underlyingSideNumbers));
+ return adoptPtr(new UnderlyingSideNumbersChecker(underlyingSideNumbers));
}
static SideNumbers getUnderlyingSideNumbers(const InterpolationValue& underlying)
@@ -111,9 +109,9 @@ private:
class InheritedSideNumbersChecker : public InterpolationType::ConversionChecker {
public:
- static std::unique_ptr<InheritedSideNumbersChecker> create(CSSPropertyID property, const SideNumbers& inheritedSideNumbers)
+ static PassOwnPtr<InheritedSideNumbersChecker> create(CSSPropertyID property, const SideNumbers& inheritedSideNumbers)
{
- return wrapUnique(new InheritedSideNumbersChecker(property, inheritedSideNumbers));
+ return adoptPtr(new InheritedSideNumbersChecker(property, inheritedSideNumbers));
}
private:
@@ -133,7 +131,7 @@ private:
InterpolationValue convertBorderImageLengthBox(const BorderImageLengthBox& box, double zoom)
{
- std::unique_ptr<InterpolableList> list = InterpolableList::create(SideIndexCount);
+ OwnPtr<InterpolableList> list = InterpolableList::create(SideIndexCount);
Vector<RefPtr<NonInterpolableValue>> nonInterpolableValues(SideIndexCount);
const BorderImageLength* sides[SideIndexCount] = {};
sides[SideTop] = &box.top();
@@ -193,7 +191,7 @@ InterpolationValue CSSBorderImageLengthBoxInterpolationType::maybeConvertValue(c
return nullptr;
const CSSQuadValue& quad = toCSSQuadValue(value);
- std::unique_ptr<InterpolableList> list = InterpolableList::create(SideIndexCount);
+ OwnPtr<InterpolableList> list = InterpolableList::create(SideIndexCount);
Vector<RefPtr<NonInterpolableValue>> nonInterpolableValues(SideIndexCount);
const CSSPrimitiveValue* sides[SideIndexCount] = {};
sides[SideTop] = quad.top();

Powered by Google App Engine
This is Rietveld 408576698