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

Unified Diff: Source/core/svg/SVGPathParser.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/SVGPathElement.cpp ('k') | Source/core/svg/SVGPathParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathParser.h
diff --git a/Source/core/svg/SVGPathParser.h b/Source/core/svg/SVGPathParser.h
index b3b6faa4963c006d932b279b6806d0684470f79c..0d2b59310597849e51e5fc85f6139ec237b31039 100644
--- a/Source/core/svg/SVGPathParser.h
+++ b/Source/core/svg/SVGPathParser.h
@@ -26,6 +26,7 @@
#include "core/svg/SVGPathConsumer.h"
#include "core/svg/SVGPathSeg.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
@@ -33,8 +34,8 @@ namespace blink {
class SVGPathSource;
-class SVGPathParser {
- WTF_MAKE_NONCOPYABLE(SVGPathParser); WTF_MAKE_FAST_ALLOCATED;
+class SVGPathParser final : public NoBaseWillBeGarbageCollected<SVGPathParser> {
+ WTF_MAKE_NONCOPYABLE(SVGPathParser); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
SVGPathParser();
@@ -43,6 +44,8 @@ public:
void setCurrentSource(SVGPathSource* source) { m_source = source; }
void cleanup();
+ void trace(Visitor*);
+
private:
bool decomposeArcToCubic(float, float, float, FloatPoint&, FloatPoint&, bool largeArcFlag, bool sweepFlag);
void parseClosePathSegment();
@@ -56,8 +59,8 @@ private:
bool parseCurveToQuadraticSmoothSegment();
bool parseArcToSegment();
- SVGPathSource* m_source;
- SVGPathConsumer* m_consumer;
+ RawPtrWillBeMember<SVGPathSource> m_source;
+ RawPtrWillBeMember<SVGPathConsumer> m_consumer;
PathCoordinateMode m_mode;
PathParsingMode m_pathParsingMode;
SVGPathSegType m_lastCommand;
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGPathParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698