Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h |
index e4709b167090f592b197bc7e5a8a7ac672d18660..0c180980510f19e7b35ed3754d43c69bd8ec119a 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h |
@@ -26,8 +26,8 @@ |
#include "core/svg/PatternAttributes.h" |
#include "platform/heap/Handle.h" |
#include "wtf/HashMap.h" |
-#include "wtf/OwnPtr.h" |
#include "wtf/RefPtr.h" |
+#include <memory> |
class SkPicture; |
@@ -53,7 +53,7 @@ public: |
LayoutSVGResourceType resourceType() const override { return s_resourceType; } |
private: |
- PassOwnPtr<PatternData> buildPatternData(const LayoutObject&); |
+ std::unique_ptr<PatternData> buildPatternData(const LayoutObject&); |
PassRefPtr<SkPicture> asPicture(const FloatRect& tile, const AffineTransform&) const; |
PatternData* patternForLayoutObject(const LayoutObject&); |
@@ -71,7 +71,7 @@ private: |
// should be able to cache a single display list per LayoutSVGResourcePattern + one |
// Pattern(shader) for each client -- this would avoid re-recording when multiple clients |
// share the same pattern. |
- HashMap<const LayoutObject*, OwnPtr<PatternData>> m_patternMap; |
+ HashMap<const LayoutObject*, std::unique_ptr<PatternData>> m_patternMap; |
}; |
} // namespace blink |