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

Unified Diff: Source/core/svg/SVGTransformTearOff.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/SVGTransformListTearOff.cpp ('k') | Source/core/svg/SVGTransformTearOff.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTransformTearOff.h
diff --git a/Source/core/svg/SVGTransformTearOff.h b/Source/core/svg/SVGTransformTearOff.h
index af1c50dc80b02fb79f30aa0f87e6db1faf8880a3..887213eb3794044d7b17e0ec0e09310c47f5e32a 100644
--- a/Source/core/svg/SVGTransformTearOff.h
+++ b/Source/core/svg/SVGTransformTearOff.h
@@ -35,6 +35,7 @@
#include "core/svg/SVGMatrixTearOff.h"
#include "core/svg/SVGTransform.h"
#include "core/svg/properties/SVGPropertyTearOff.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -51,9 +52,9 @@ public:
SVG_TRANSFORM_SKEWY = blink::SVG_TRANSFORM_SKEWY,
};
- static PassRefPtr<SVGTransformTearOff> create(PassRefPtr<SVGTransform> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
+ static PassRefPtrWillBeRawPtr<SVGTransformTearOff> create(PassRefPtrWillBeRawPtr<SVGTransform> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null())
{
- return adoptRef(new SVGTransformTearOff(target, contextElement, propertyIsAnimVal, attributeName));
+ return adoptRefWillBeNoop(new SVGTransformTearOff(target, contextElement, propertyIsAnimVal, attributeName));
}
virtual ~SVGTransformTearOff();
@@ -62,17 +63,19 @@ public:
SVGMatrixTearOff* matrix();
float angle() { return target()->angle(); }
- void setMatrix(PassRefPtr<SVGMatrixTearOff>, ExceptionState&);
+ void setMatrix(PassRefPtrWillBeRawPtr<SVGMatrixTearOff>, ExceptionState&);
void setTranslate(float tx, float ty, ExceptionState&);
void setScale(float sx, float sy, ExceptionState&);
void setRotate(float angle, float cx, float cy, ExceptionState&);
void setSkewX(float, ExceptionState&);
void setSkewY(float, ExceptionState&);
+ virtual void trace(Visitor*) override;
+
private:
- SVGTransformTearOff(PassRefPtr<SVGTransform>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName);
+ SVGTransformTearOff(PassRefPtrWillBeRawPtr<SVGTransform>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName);
- RefPtr<SVGMatrixTearOff> m_matrixTearoff;
+ RefPtrWillBeMember<SVGMatrixTearOff> m_matrixTearoff;
};
} // namespace blink
« no previous file with comments | « Source/core/svg/SVGTransformListTearOff.cpp ('k') | Source/core/svg/SVGTransformTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698