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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolationValue.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/InterpolationValue.h
diff --git a/third_party/WebKit/Source/core/animation/InterpolationValue.h b/third_party/WebKit/Source/core/animation/InterpolationValue.h
index f3d2d848f30bdc0fae4a7f22e7b373630e09084a..10acf58c8868cccf3156e8cd02bf3b2448689007 100644
--- a/third_party/WebKit/Source/core/animation/InterpolationValue.h
+++ b/third_party/WebKit/Source/core/animation/InterpolationValue.h
@@ -8,6 +8,7 @@
#include "core/animation/InterpolableValue.h"
#include "core/animation/NonInterpolableValue.h"
#include "platform/heap/Handle.h"
+#include <memory>
namespace blink {
@@ -16,7 +17,7 @@ namespace blink {
struct InterpolationValue {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
- explicit InterpolationValue(PassOwnPtr<InterpolableValue> interpolableValue, PassRefPtr<NonInterpolableValue> nonInterpolableValue = nullptr)
+ explicit InterpolationValue(std::unique_ptr<InterpolableValue> interpolableValue, PassRefPtr<NonInterpolableValue> nonInterpolableValue = nullptr)
: interpolableValue(std::move(interpolableValue))
, nonInterpolableValue(nonInterpolableValue)
{ }
@@ -47,7 +48,7 @@ struct InterpolationValue {
nonInterpolableValue.clear();
}
- OwnPtr<InterpolableValue> interpolableValue;
+ std::unique_ptr<InterpolableValue> interpolableValue;
RefPtr<NonInterpolableValue> nonInterpolableValue;
};

Powered by Google App Engine
This is Rietveld 408576698