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

Unified Diff: third_party/WebKit/Source/core/style/ShadowList.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
« no previous file with comments | « third_party/WebKit/Source/core/style/ShadowList.h ('k') | third_party/WebKit/Source/core/style/StylePath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ShadowList.cpp
diff --git a/third_party/WebKit/Source/core/style/ShadowList.cpp b/third_party/WebKit/Source/core/style/ShadowList.cpp
index 281d41528e3571db00cde93b88a84b66799af1af..126b90992fc7da577db500d731c5d1269b977114 100644
--- a/third_party/WebKit/Source/core/style/ShadowList.cpp
+++ b/third_party/WebKit/Source/core/style/ShadowList.cpp
@@ -31,7 +31,7 @@
#include "core/style/ShadowList.h"
#include "platform/geometry/FloatRect.h"
-#include "wtf/OwnPtr.h"
+#include <memory>
namespace blink {
@@ -77,9 +77,9 @@ PassRefPtr<ShadowList> ShadowList::blend(const ShadowList* from, const ShadowLis
return ShadowList::adopt(shadows);
}
-PassOwnPtr<DrawLooperBuilder> ShadowList::createDrawLooper(DrawLooperBuilder::ShadowAlphaMode alphaMode, const Color& currentColor, bool isHorizontal) const
+std::unique_ptr<DrawLooperBuilder> ShadowList::createDrawLooper(DrawLooperBuilder::ShadowAlphaMode alphaMode, const Color& currentColor, bool isHorizontal) const
{
- OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create();
+ std::unique_ptr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create();
for (size_t i = shadows().size(); i--; ) {
const ShadowData& shadow = shadows()[i];
float shadowX = isHorizontal ? shadow.x() : shadow.y();
« no previous file with comments | « third_party/WebKit/Source/core/style/ShadowList.h ('k') | third_party/WebKit/Source/core/style/StylePath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698