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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolableValue.cpp

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/InterpolableValue.cpp
diff --git a/third_party/WebKit/Source/core/animation/InterpolableValue.cpp b/third_party/WebKit/Source/core/animation/InterpolableValue.cpp
index 084ecf872d1528bf54715c84fea717f8996105a0..de958c4bb1d3c10f5be733367587413430d416eb 100644
--- a/third_party/WebKit/Source/core/animation/InterpolableValue.cpp
+++ b/third_party/WebKit/Source/core/animation/InterpolableValue.cpp
@@ -4,6 +4,8 @@
#include "core/animation/InterpolableValue.h"
+#include <memory>
+
namespace blink {
bool InterpolableNumber::equals(const InterpolableValue& other) const
@@ -62,9 +64,9 @@ void InterpolableList::interpolate(const InterpolableValue& to, const double pro
}
}
-PassOwnPtr<InterpolableValue> InterpolableList::cloneAndZero() const
+std::unique_ptr<InterpolableValue> InterpolableList::cloneAndZero() const
{
- OwnPtr<InterpolableList> result = InterpolableList::create(m_size);
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(m_size);
for (size_t i = 0; i < m_size; i++)
result->set(i, m_values[i]->cloneAndZero());
return std::move(result);

Powered by Google App Engine
This is Rietveld 408576698