| Index: Source/core/animation/AnimatableSVGLength.h
|
| diff --git a/Source/core/animation/AnimatableSVGLength.h b/Source/core/animation/AnimatableSVGLength.h
|
| index 27dba9a48c1a0909de178272d900270e3d107bd8..83d67cd7bd5441fb16c7b1678f203a18ec78f021 100644
|
| --- a/Source/core/animation/AnimatableSVGLength.h
|
| +++ b/Source/core/animation/AnimatableSVGLength.h
|
| @@ -36,18 +36,18 @@
|
|
|
| namespace WebCore {
|
|
|
| -class AnimatableSVGLength: public AnimatableValue {
|
| +class AnimatableSVGLength : 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 { return TypeSVGLength; }
|
| virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
|
|
|
| - SVGLength m_length;
|
| + RefPtr<SVGLength> m_length;
|
| };
|
|
|
| DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableSVGLength, isSVGLength());
|
|
|