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

Unified Diff: third_party/WebKit/Source/core/animation/Interpolation.h

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/Interpolation.h
diff --git a/third_party/WebKit/Source/core/animation/Interpolation.h b/third_party/WebKit/Source/core/animation/Interpolation.h
index 6131a9858762cd417810491535cad51e68a42610..e613163d26812ceaf4f59e822b3f5a69f10203e4 100644
--- a/third_party/WebKit/Source/core/animation/Interpolation.h
+++ b/third_party/WebKit/Source/core/animation/Interpolation.h
@@ -9,7 +9,6 @@
#include "core/animation/InterpolableValue.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
-#include <memory>
namespace blink {
@@ -31,14 +30,14 @@ public:
virtual bool dependsOnUnderlyingValue() const { return false; }
protected:
- const std::unique_ptr<InterpolableValue> m_start;
- const std::unique_ptr<InterpolableValue> m_end;
+ const OwnPtr<InterpolableValue> m_start;
+ const OwnPtr<InterpolableValue> m_end;
mutable double m_cachedFraction;
mutable int m_cachedIteration;
- mutable std::unique_ptr<InterpolableValue> m_cachedValue;
+ mutable OwnPtr<InterpolableValue> m_cachedValue;
- Interpolation(std::unique_ptr<InterpolableValue> start, std::unique_ptr<InterpolableValue> end);
+ Interpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end);
private:
InterpolableValue* getCachedValueForTesting() const { return m_cachedValue.get(); }

Powered by Google App Engine
This is Rietveld 408576698