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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.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/LayoutSVGShape.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h
index a7b3fde91301fe8d01b555f2ed8668e08a8daf06..2e4899c116874c87c26a0fe5f6b0c865ba0093e4 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h
@@ -30,8 +30,8 @@
#include "core/layout/svg/SVGMarkerData.h"
#include "platform/geometry/FloatRect.h"
#include "platform/transforms/AffineTransform.h"
+#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
-#include <memory>
namespace blink {
@@ -131,8 +131,8 @@ private:
// TODO(fmalita): the Path is now cached in SVGPath; while this additional cache is just a
// shallow copy, it certainly has a complexity/state management cost (plus allocation & storage
// overhead) - so we should look into removing it.
- std::unique_ptr<Path> m_path;
- mutable std::unique_ptr<LayoutSVGShapeRareData> m_rareData;
+ OwnPtr<Path> m_path;
+ mutable OwnPtr<LayoutSVGShapeRareData> m_rareData;
bool m_needsBoundariesUpdate : 1;
bool m_needsShapeUpdate : 1;

Powered by Google App Engine
This is Rietveld 408576698