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 126b90992fc7da577db500d731c5d1269b977114..281d41528e3571db00cde93b88a84b66799af1af 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 <memory> |
+#include "wtf/OwnPtr.h" |
namespace blink { |
@@ -77,9 +77,9 @@ PassRefPtr<ShadowList> ShadowList::blend(const ShadowList* from, const ShadowLis |
return ShadowList::adopt(shadows); |
} |
-std::unique_ptr<DrawLooperBuilder> ShadowList::createDrawLooper(DrawLooperBuilder::ShadowAlphaMode alphaMode, const Color& currentColor, bool isHorizontal) const |
+PassOwnPtr<DrawLooperBuilder> ShadowList::createDrawLooper(DrawLooperBuilder::ShadowAlphaMode alphaMode, const Color& currentColor, bool isHorizontal) const |
{ |
- std::unique_ptr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create(); |
+ OwnPtr<DrawLooperBuilder> drawLooperBuilder = DrawLooperBuilder::create(); |
for (size_t i = shadows().size(); i--; ) { |
const ShadowData& shadow = shadows()[i]; |
float shadowX = isHorizontal ? shadow.x() : shadow.y(); |