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

Unified Diff: Source/core/svg/SVGMarkerElement.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/SVGMPathElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGMarkerElement.h
diff --git a/Source/core/svg/SVGMarkerElement.h b/Source/core/svg/SVGMarkerElement.h
index 8d8045dc9843f0006710cfcd1c478e35eeaffdfa..2091870c8b27cf2ec18322920a8f344bbde6f3c1 100644
--- a/Source/core/svg/SVGMarkerElement.h
+++ b/Source/core/svg/SVGMarkerElement.h
@@ -28,6 +28,7 @@
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGElement.h"
#include "core/svg/SVGFitToViewBox.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -41,6 +42,7 @@ template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGMarkerUn
class SVGMarkerElement final : public SVGElement,
public SVGFitToViewBox {
DEFINE_WRAPPERTYPEINFO();
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGMarkerElement);
public:
// Forward declare enumerations in the W3C naming scheme, for IDL generation.
enum {
@@ -60,7 +62,7 @@ public:
AffineTransform viewBoxToViewTransform(float viewWidth, float viewHeight) const;
void setOrientToAuto();
- void setOrientToAngle(PassRefPtr<SVGAngleTearOff>);
+ void setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff>);
SVGAnimatedLength* refX() const { return m_refX.get(); }
SVGAnimatedLength* refY() const { return m_refY.get(); }
@@ -70,6 +72,8 @@ public:
SVGAnimatedAngle* orientAngle() { return m_orientAngle.get(); }
SVGAnimatedEnumeration<SVGMarkerOrientType>* orientType() { return m_orientAngle->orientType(); }
+ virtual void trace(Visitor*) override;
+
private:
explicit SVGMarkerElement(Document&);
@@ -85,12 +89,12 @@ private:
virtual bool selfHasRelativeLengths() const override;
- RefPtr<SVGAnimatedLength> m_refX;
- RefPtr<SVGAnimatedLength> m_refY;
- RefPtr<SVGAnimatedLength> m_markerWidth;
- RefPtr<SVGAnimatedLength> m_markerHeight;
- RefPtr<SVGAnimatedAngle> m_orientAngle;
- RefPtr<SVGAnimatedEnumeration<SVGMarkerUnitsType> > m_markerUnits;
+ RefPtrWillBeMember<SVGAnimatedLength> m_refX;
+ RefPtrWillBeMember<SVGAnimatedLength> m_refY;
+ RefPtrWillBeMember<SVGAnimatedLength> m_markerWidth;
+ RefPtrWillBeMember<SVGAnimatedLength> m_markerHeight;
+ RefPtrWillBeMember<SVGAnimatedAngle> m_orientAngle;
+ RefPtrWillBeMember<SVGAnimatedEnumeration<SVGMarkerUnitsType> > m_markerUnits;
};
} // namespace blink
« no previous file with comments | « Source/core/svg/SVGMPathElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698