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

Unified Diff: third_party/WebKit/Source/core/css/CSSPathValue.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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPathValue.h ('k') | third_party/WebKit/Source/core/css/CSSSelector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSPathValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSPathValue.cpp b/third_party/WebKit/Source/core/css/CSSPathValue.cpp
index 2cb4e3a9ba854deaf9f871f883a38d5283a7f09f..ff88f62af474e646ad77790b780477927d6eb38f 100644
--- a/third_party/WebKit/Source/core/css/CSSPathValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSPathValue.cpp
@@ -6,7 +6,6 @@
#include "core/style/StylePath.h"
#include "core/svg/SVGPathUtilities.h"
-#include <memory>
namespace blink {
@@ -15,7 +14,7 @@ CSSPathValue* CSSPathValue::create(PassRefPtr<StylePath> stylePath)
return new CSSPathValue(stylePath);
}
-CSSPathValue* CSSPathValue::create(std::unique_ptr<SVGPathByteStream> pathByteStream)
+CSSPathValue* CSSPathValue::create(PassOwnPtr<SVGPathByteStream> pathByteStream)
{
return CSSPathValue::create(StylePath::create(std::move(pathByteStream)));
}
@@ -31,7 +30,7 @@ namespace {
CSSPathValue* createPathValue()
{
- std::unique_ptr<SVGPathByteStream> pathByteStream = SVGPathByteStream::create();
+ OwnPtr<SVGPathByteStream> pathByteStream = SVGPathByteStream::create();
// Need to be registered as LSan ignored, as it will be reachable and
// separately referred to by emptyPathValue() callers.
LEAK_SANITIZER_IGNORE_OBJECT(pathByteStream.get());
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPathValue.h ('k') | third_party/WebKit/Source/core/css/CSSSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698