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

Unified Diff: Source/core/svg/SVGGradientElement.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/SVGGeometryElement.cpp ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGGradientElement.h
diff --git a/Source/core/svg/SVGGradientElement.h b/Source/core/svg/SVGGradientElement.h
index 82cad3b2e2e6bee9eeccc55c83b127093dea4011..0f6c471f1ff1942eaca0df460cd899e0716d1f89 100644
--- a/Source/core/svg/SVGGradientElement.h
+++ b/Source/core/svg/SVGGradientElement.h
@@ -29,6 +29,7 @@
#include "core/svg/SVGURIReference.h"
#include "core/svg/SVGUnitTypes.h"
#include "platform/graphics/Gradient.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -43,6 +44,7 @@ template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGSpreadMe
class SVGGradientElement : public SVGElement,
public SVGURIReference {
DEFINE_WRAPPERTYPEINFO();
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGGradientElement);
public:
enum {
SVG_SPREADMETHOD_UNKNOWN = SVGSpreadMethodUnknown,
@@ -57,6 +59,8 @@ public:
SVGAnimatedEnumeration<SVGSpreadMethodType>* spreadMethod() { return m_spreadMethod.get(); }
SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>* gradientUnits() { return m_gradientUnits.get(); }
+ virtual void trace(Visitor*) override;
+
protected:
SVGGradientElement(const QualifiedName&, Document&);
@@ -69,9 +73,9 @@ private:
virtual void childrenChanged(const ChildrenChange&) override final;
- RefPtr<SVGAnimatedTransformList> m_gradientTransform;
- RefPtr<SVGAnimatedEnumeration<SVGSpreadMethodType> > m_spreadMethod;
- RefPtr<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_gradientUnits;
+ RefPtrWillBeMember<SVGAnimatedTransformList> m_gradientTransform;
+ RefPtrWillBeMember<SVGAnimatedEnumeration<SVGSpreadMethodType> > m_spreadMethod;
+ RefPtrWillBeMember<SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType> > m_gradientUnits;
};
inline bool isSVGGradientElement(const SVGElement& element)
« no previous file with comments | « Source/core/svg/SVGGeometryElement.cpp ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698