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

Unified Diff: Source/core/svg/SVGMatrixTearOff.cpp

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/SVGMatrixTearOff.h ('k') | Source/core/svg/SVGNumber.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGMatrixTearOff.cpp
diff --git a/Source/core/svg/SVGMatrixTearOff.cpp b/Source/core/svg/SVGMatrixTearOff.cpp
index 5578c202c91e7e0223ebf9d594c1b5d3dd20dce0..75d27b8edc5b053f20c75e610fd6029763ec23fb 100644
--- a/Source/core/svg/SVGMatrixTearOff.cpp
+++ b/Source/core/svg/SVGMatrixTearOff.cpp
@@ -33,13 +33,14 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
+#include "core/svg/SVGElement.h"
#include "core/svg/SVGTransformTearOff.h"
namespace blink {
SVGMatrixTearOff::SVGMatrixTearOff(const AffineTransform& staticValue)
: m_staticValue(staticValue)
- , m_contextTransform(0)
+ , m_contextTransform(nullptr)
{
}
@@ -53,6 +54,11 @@ SVGMatrixTearOff::~SVGMatrixTearOff()
{
}
+void SVGMatrixTearOff::trace(Visitor* visitor)
+{
+ visitor->trace(m_contextTransform);
+}
+
const AffineTransform& SVGMatrixTearOff::value() const
{
return m_contextTransform ? m_contextTransform->target()->matrix() : m_staticValue;
@@ -92,70 +98,70 @@ DEFINE_SETTER(F);
#undef DEFINE_SETTER
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::translate(double tx, double ty)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::translate(double tx, double ty)
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->translate(tx, ty);
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::scale(double s)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::scale(double s)
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->scale(s, s);
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::scaleNonUniform(double sx, double sy)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::scaleNonUniform(double sx, double sy)
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->scale(sx, sy);
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::rotate(double d)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::rotate(double d)
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->rotate(d);
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::flipX()
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::flipX()
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->flipX();
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::flipY()
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::flipY()
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->flipY();
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::skewX(double angle)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::skewX(double angle)
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->skewX(angle);
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::skewY(double angle)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::skewY(double angle)
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
matrix->mutableValue()->skewY(angle);
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::multiply(PassRefPtr<SVGMatrixTearOff> other)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::multiply(PassRefPtrWillBeRawPtr<SVGMatrixTearOff> other)
{
- RefPtr<SVGMatrixTearOff> matrix = create(value());
+ RefPtrWillBeRawPtr<SVGMatrixTearOff> matrix = create(value());
*matrix->mutableValue() *= other->value();
return matrix.release();
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::inverse(ExceptionState& exceptionState)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::inverse(ExceptionState& exceptionState)
{
AffineTransform transform = value().inverse();
if (!value().isInvertible())
@@ -164,7 +170,7 @@ PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::inverse(ExceptionState& exception
return create(transform);
}
-PassRefPtr<SVGMatrixTearOff> SVGMatrixTearOff::rotateFromVector(double x, double y, ExceptionState& exceptionState)
+PassRefPtrWillBeRawPtr<SVGMatrixTearOff> SVGMatrixTearOff::rotateFromVector(double x, double y, ExceptionState& exceptionState)
{
if (!x || !y)
exceptionState.throwDOMException(InvalidAccessError, "Arguments cannot be zero.");
« no previous file with comments | « Source/core/svg/SVGMatrixTearOff.h ('k') | Source/core/svg/SVGNumber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698