Index: Source/core/animation/AnimatableSVGLength.h |
diff --git a/Source/core/animation/AnimatableSVGLength.h b/Source/core/animation/AnimatableSVGLength.h |
index c99fa2e310ae095ced2c17ef032a7651ea5c86b5..dd4a627a2d2038ba3ff0ed8c5d10bfc2b55d2311 100644 |
--- a/Source/core/animation/AnimatableSVGLength.h |
+++ b/Source/core/animation/AnimatableSVGLength.h |
@@ -40,14 +40,14 @@ class AnimatableSVGLength FINAL : public AnimatableValue { |
public: |
virtual ~AnimatableSVGLength() { } |
- static PassRefPtr<AnimatableSVGLength> create(const SVGLength& length) |
+ static PassRefPtr<AnimatableSVGLength> create(PassRefPtr<SVGLength> length) |
{ |
return adoptRef(new AnimatableSVGLength(length)); |
} |
- const SVGLength& toSVGLength() const |
+ SVGLength* toSVGLength() const |
{ |
- return m_length; |
+ return m_length.get(); |
} |
protected: |
@@ -55,7 +55,7 @@ protected: |
virtual PassRefPtr<AnimatableValue> addWith(const AnimatableValue*) const OVERRIDE; |
private: |
- AnimatableSVGLength(const SVGLength& length) |
+ AnimatableSVGLength(PassRefPtr<SVGLength> length) |
: m_length(length) |
{ |
} |
@@ -63,7 +63,7 @@ private: |
virtual AnimatableType type() const OVERRIDE { return TypeSVGLength; } |
virtual bool equalTo(const AnimatableValue*) const OVERRIDE; |
- SVGLength m_length; |
+ RefPtr<SVGLength> m_length; |
}; |
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableSVGLength, isSVGLength()); |