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

Unified Diff: third_party/WebKit/Source/core/style/CachedUAStyle.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/style/CachedUAStyle.h
diff --git a/third_party/WebKit/Source/core/style/CachedUAStyle.h b/third_party/WebKit/Source/core/style/CachedUAStyle.h
index 347b4fe21869c5e43c7cff103248b5b0d7772781..f9cadf8bcacf8a37abb6ca33ba430a53d73d91cb 100644
--- a/third_party/WebKit/Source/core/style/CachedUAStyle.h
+++ b/third_party/WebKit/Source/core/style/CachedUAStyle.h
@@ -25,8 +25,6 @@
#include "core/style/ComputedStyle.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -38,9 +36,9 @@ class CachedUAStyle {
USING_FAST_MALLOC(CachedUAStyle);
WTF_MAKE_NONCOPYABLE(CachedUAStyle);
public:
- static std::unique_ptr<CachedUAStyle> create(const ComputedStyle* style)
+ static PassOwnPtr<CachedUAStyle> create(const ComputedStyle* style)
{
- return wrapUnique(new CachedUAStyle(style));
+ return adoptPtr(new CachedUAStyle(style));
}
BorderData border;
« no previous file with comments | « third_party/WebKit/Source/core/streams/ReadableStreamTest.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698