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

Unified Diff: third_party/WebKit/Source/core/style/CounterDirectives.cpp

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/style/CounterDirectives.cpp
diff --git a/third_party/WebKit/Source/core/style/CounterDirectives.cpp b/third_party/WebKit/Source/core/style/CounterDirectives.cpp
index bbb35268a3b344ded231a15a573339c5c86050af..ce9d391cbf26c52cefc548f5631543b784dbffd7 100644
--- a/third_party/WebKit/Source/core/style/CounterDirectives.cpp
+++ b/third_party/WebKit/Source/core/style/CounterDirectives.cpp
@@ -21,8 +21,7 @@
#include "core/style/CounterDirectives.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -34,9 +33,9 @@ bool operator==(const CounterDirectives& a, const CounterDirectives& b)
&& a.resetValue() == b.resetValue();
}
-std::unique_ptr<CounterDirectiveMap> clone(const CounterDirectiveMap& counterDirectives)
+PassOwnPtr<CounterDirectiveMap> clone(const CounterDirectiveMap& counterDirectives)
{
- std::unique_ptr<CounterDirectiveMap> result = wrapUnique(new CounterDirectiveMap);
+ OwnPtr<CounterDirectiveMap> result = adoptPtr(new CounterDirectiveMap);
*result = counterDirectives;
return result;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/CounterDirectives.h ('k') | third_party/WebKit/Source/core/style/DataEquivalency.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698