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

Unified Diff: third_party/WebKit/Source/core/animation/KeyframeEffectModel.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/KeyframeEffectModel.h
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h b/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h
index cd2d332fe317f4cabc3808ea8d9da4812d552b27..28502f05e6781c939a19404c6679180fe2c47803 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffectModel.h
@@ -44,6 +44,7 @@
#include "wtf/HashSet.h"
#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -83,7 +84,7 @@ public:
return m_keyframeGroups->get(property)->keyframes();
}
- using KeyframeGroupMap = HashMap<PropertyHandle, OwnPtr<PropertySpecificKeyframeGroup>>;
+ using KeyframeGroupMap = HashMap<PropertyHandle, std::unique_ptr<PropertySpecificKeyframeGroup>>;
const KeyframeGroupMap& getPropertySpecificKeyframeGroups() const
{
ensureKeyframeGroups();
@@ -140,7 +141,7 @@ protected:
// The spec describes filtering the normalized keyframes at sampling time
// to get the 'property-specific keyframes'. For efficiency, we cache the
// property-specific lists.
- mutable OwnPtr<KeyframeGroupMap> m_keyframeGroups;
+ mutable std::unique_ptr<KeyframeGroupMap> m_keyframeGroups;
mutable InterpolationEffect m_interpolationEffect;
mutable int m_lastIteration;
mutable double m_lastFraction;

Powered by Google App Engine
This is Rietveld 408576698