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

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 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/SVGGradientElement.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGGraphicsElement.h
diff --git a/Source/core/svg/SVGGraphicsElement.h b/Source/core/svg/SVGGraphicsElement.h
index a486e0ae4ce65f20940447fcfb5ec159b8d46559..bdb76a3ee42f8d02e837b9a0fcd5421d9a14e08d 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;
@@ -56,7 +58,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&);
@@ -70,6 +72,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);
@@ -79,7 +83,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; }
« no previous file with comments | « Source/core/svg/SVGGradientElement.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698