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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.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/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 0c180980510f19e7b35ed3754d43c69bd8ec119a..e4709b167090f592b197bc7e5a8a7ac672d18660 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:
- std::unique_ptr<PatternData> buildPatternData(const LayoutObject&);
+ PassOwnPtr<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*, std::unique_ptr<PatternData>> m_patternMap;
+ HashMap<const LayoutObject*, OwnPtr<PatternData>> m_patternMap;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698