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

Unified Diff: Source/core/animation/AnimatableSVGLength.h

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years 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
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());

Powered by Google App Engine
This is Rietveld 408576698