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

Unified Diff: Source/core/svg/SVGPathSegListBuilder.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | « Source/core/svg/SVGPathSegList.idl ('k') | Source/core/svg/SVGPathSegListBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSegListBuilder.h
diff --git a/Source/core/svg/SVGPathSegListBuilder.h b/Source/core/svg/SVGPathSegListBuilder.h
index 56babb427ac93f832a1a2b7f7a3cfbf8804691f5..e89fdfa35cf41c48febf20cca744cbc8b95990cb 100644
--- a/Source/core/svg/SVGPathSegListBuilder.h
+++ b/Source/core/svg/SVGPathSegListBuilder.h
@@ -27,6 +27,7 @@
#include "core/svg/SVGPathConsumer.h"
#include "core/svg/SVGPathSegList.h"
#include "platform/geometry/FloatPoint.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -37,14 +38,16 @@ public:
SVGPathSegListBuilder();
void setCurrentSVGPathElement(SVGPathElement* pathElement) { m_pathElement = pathElement; }
- void setCurrentSVGPathSegList(PassRefPtr<SVGPathSegList> pathSegList) { m_pathSegList = pathSegList; }
+ void setCurrentSVGPathSegList(PassRefPtrWillBeRawPtr<SVGPathSegList> pathSegList) { m_pathSegList = pathSegList; }
+
+ virtual void trace(Visitor*) override;
private:
virtual void incrementPathSegmentCount() override { }
virtual bool continueConsuming() override { return true; }
virtual void cleanup() override
{
- m_pathElement = 0;
+ m_pathElement = nullptr;
m_pathSegList = nullptr;
}
@@ -62,8 +65,8 @@ private:
virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) override;
virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, PathCoordinateMode) override;
- SVGPathElement* m_pathElement;
- RefPtr<SVGPathSegList> m_pathSegList;
+ RawPtrWillBeMember<SVGPathElement> m_pathElement;
+ RefPtrWillBeMember<SVGPathSegList> m_pathSegList;
};
} // namespace blink
« no previous file with comments | « Source/core/svg/SVGPathSegList.idl ('k') | Source/core/svg/SVGPathSegListBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698