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

Unified Diff: third_party/WebKit/Source/core/css/StyleRuleKeyframe.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/css/StyleRuleKeyframe.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp b/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp
index db237ada9f1cf44247d601d67bd2683a2dedfb5e..77423a3ad29435b5812ab377229cb5f6cd3e85ee 100644
--- a/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp
+++ b/third_party/WebKit/Source/core/css/StyleRuleKeyframe.cpp
@@ -7,10 +7,11 @@
#include "core/css/StylePropertySet.h"
#include "core/css/parser/CSSParser.h"
#include "wtf/text/StringBuilder.h"
+#include <memory>
namespace blink {
-StyleRuleKeyframe::StyleRuleKeyframe(PassOwnPtr<Vector<double>> keys, StylePropertySet* properties)
+StyleRuleKeyframe::StyleRuleKeyframe(std::unique_ptr<Vector<double>> keys, StylePropertySet* properties)
: StyleRuleBase(Keyframe)
, m_properties(properties)
, m_keys(*keys)
@@ -36,7 +37,7 @@ bool StyleRuleKeyframe::setKeyText(const String& keyText)
{
ASSERT(!keyText.isNull());
- OwnPtr<Vector<double>> keys = CSSParser::parseKeyframeKeyList(keyText);
+ std::unique_ptr<Vector<double>> keys = CSSParser::parseKeyframeKeyList(keyText);
if (!keys || keys->isEmpty())
return false;

Powered by Google App Engine
This is Rietveld 408576698