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

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: revert aggressive svgAttributeChanged, add NeedsRebaseline Created 6 years, 11 months 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/bindings/v8/custom/V8SVGLengthCustom.cpp ('k') | Source/core/animation/AnimatableSVGLength.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/bindings/v8/custom/V8SVGLengthCustom.cpp ('k') | Source/core/animation/AnimatableSVGLength.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698