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

Unified Diff: Source/core/svg/SVGPathBlender.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/SVGNumberTearOff.cpp ('k') | Source/core/svg/SVGPathBlender.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathBlender.h
diff --git a/Source/core/svg/SVGPathBlender.h b/Source/core/svg/SVGPathBlender.h
index 3490a246440170d503b2ab8a5932c90bc87895ab..414e9f5f56bd74d7ed929d9d618a7edc9331aba3 100644
--- a/Source/core/svg/SVGPathBlender.h
+++ b/Source/core/svg/SVGPathBlender.h
@@ -21,6 +21,7 @@
#define SVGPathBlender_h
#include "core/svg/SVGPathConsumer.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -31,8 +32,8 @@ enum FloatBlendMode {
class SVGPathSource;
-class SVGPathBlender {
- WTF_MAKE_NONCOPYABLE(SVGPathBlender); WTF_MAKE_FAST_ALLOCATED;
+class SVGPathBlender : public NoBaseWillBeGarbageCollectedFinalized<SVGPathBlender> {
+ WTF_MAKE_NONCOPYABLE(SVGPathBlender); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
SVGPathBlender();
@@ -40,6 +41,8 @@ public:
bool blendAnimatedPath(float, SVGPathSource*, SVGPathSource*, SVGPathConsumer*);
void cleanup();
+ void trace(Visitor*);
+
private:
bool blendMoveToSegment();
bool blendLineToSegment();
@@ -54,9 +57,9 @@ private:
float blendAnimatedDimensonalFloat(float, float, FloatBlendMode);
FloatPoint blendAnimatedFloatPoint(const FloatPoint& from, const FloatPoint& to);
- SVGPathSource* m_fromSource;
- SVGPathSource* m_toSource;
- SVGPathConsumer* m_consumer;
+ RawPtrWillBeMember<SVGPathSource> m_fromSource;
+ RawPtrWillBeMember<SVGPathSource> m_toSource;
+ RawPtrWillBeMember<SVGPathConsumer> m_consumer;
FloatPoint m_fromCurrentPoint;
FloatPoint m_toCurrentPoint;
« no previous file with comments | « Source/core/svg/SVGNumberTearOff.cpp ('k') | Source/core/svg/SVGPathBlender.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698