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

Unified Diff: third_party/WebKit/Source/core/animation/SVGRectInterpolationType.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/SVGRectInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp
index 9eca8aeac343be69b5f83734223778f99dbf639a..76ae4454f41b299a6e10eeb51d03b1fe011a502e 100644
--- a/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/SVGRectInterpolationType.cpp
@@ -7,7 +7,6 @@
#include "core/animation/StringKeyframe.h"
#include "core/svg/SVGRect.h"
#include "wtf/StdLibExtras.h"
-#include <memory>
namespace blink {
@@ -21,7 +20,7 @@ enum RectComponentIndex {
InterpolationValue SVGRectInterpolationType::maybeConvertNeutral(const InterpolationValue&, ConversionCheckers&) const
{
- std::unique_ptr<InterpolableList> result = InterpolableList::create(RectComponentIndexCount);
+ OwnPtr<InterpolableList> result = InterpolableList::create(RectComponentIndexCount);
for (size_t i = 0; i < RectComponentIndexCount; i++)
result->set(i, InterpolableNumber::create(0));
return InterpolationValue(std::move(result));
@@ -33,7 +32,7 @@ InterpolationValue SVGRectInterpolationType::maybeConvertSVGValue(const SVGPrope
return nullptr;
const SVGRect& rect = toSVGRect(svgValue);
- std::unique_ptr<InterpolableList> result = InterpolableList::create(RectComponentIndexCount);
+ OwnPtr<InterpolableList> result = InterpolableList::create(RectComponentIndexCount);
result->set(RectX, InterpolableNumber::create(rect.x()));
result->set(RectY, InterpolableNumber::create(rect.y()));
result->set(RectWidth, InterpolableNumber::create(rect.width()));

Powered by Google App Engine
This is Rietveld 408576698