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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 2 months 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
Index: Source/core/svg/SVGGraphicsElement.h
diff --git a/Source/core/svg/SVGGraphicsElement.h b/Source/core/svg/SVGGraphicsElement.h
index 810882fe7f0e9ea38470a2c655f58f613701f539..97512376543c719339faf20cf06321e5ade61768 100644
--- a/Source/core/svg/SVGGraphicsElement.h
+++ b/Source/core/svg/SVGGraphicsElement.h
@@ -26,6 +26,7 @@
#include "core/svg/SVGElement.h"
#include "core/svg/SVGRectTearOff.h"
#include "core/svg/SVGTests.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -35,6 +36,7 @@ class SVGMatrixTearOff;
class SVGGraphicsElement : public SVGElement, public SVGTests {
DEFINE_WRAPPERTYPEINFO();
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGGraphicsElement);
public:
virtual ~SVGGraphicsElement();
@@ -42,10 +44,10 @@ public:
AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate);
AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate);
- PassRefPtr<SVGMatrixTearOff> getCTMFromJavascript();
- PassRefPtr<SVGMatrixTearOff> getScreenCTMFromJavascript();
+ PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getCTMFromJavascript();
+ PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getScreenCTMFromJavascript();
- PassRefPtr<SVGMatrixTearOff> getTransformToElement(SVGElement*, ExceptionState&);
+ PassRefPtrWillBeRawPtr<SVGMatrixTearOff> getTransformToElement(SVGElement*, ExceptionState&);
SVGElement* nearestViewportElement() const;
SVGElement* farthestViewportElement() const;
@@ -55,7 +57,7 @@ public:
virtual AffineTransform* animateMotionTransform() override;
virtual FloatRect getBBox();
- PassRefPtr<SVGRectTearOff> getBBoxFromJavascript();
+ PassRefPtrWillBeRawPtr<SVGRectTearOff> getBBoxFromJavascript();
// "base class" methods for all the elements which render as paths
virtual void toClipPath(Path&);
@@ -69,6 +71,8 @@ public:
AffineTransform computeCTM(SVGElement::CTMScope mode, SVGGraphicsElement::StyleUpdateStrategy,
const SVGGraphicsElement* ancestor = 0) const;
+ virtual void trace(Visitor*) override;
+
protected:
SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElement);
@@ -78,7 +82,7 @@ protected:
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual void svgAttributeChanged(const QualifiedName&) override;
- RefPtr<SVGAnimatedTransformList> m_transform;
+ RefPtrWillBeMember<SVGAnimatedTransformList> m_transform;
private:
virtual bool isSVGGraphicsElement() const override final { return true; }

Powered by Google App Engine
This is Rietveld 408576698