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

Unified Diff: Source/core/animation/AnimatableStrokeDasharrayList.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/AnimatableStrokeDasharrayList.h
diff --git a/Source/core/animation/AnimatableStrokeDasharrayList.h b/Source/core/animation/AnimatableStrokeDasharrayList.h
index 8efea25ad537964c5b30393d173ecc1f612aee89..47e8f11b20dd89b7ddf05782d1596805921fde9f 100644
--- a/Source/core/animation/AnimatableStrokeDasharrayList.h
+++ b/Source/core/animation/AnimatableStrokeDasharrayList.h
@@ -32,7 +32,7 @@
#define AnimatableStrokeDasharrayList_h
#include "core/animation/AnimatableRepeatable.h"
-#include "core/svg/SVGLength.h"
+#include "core/svg/SVGLengthList.h"
namespace WebCore {
@@ -40,19 +40,19 @@ class AnimatableStrokeDasharrayList: public AnimatableRepeatable {
public:
virtual ~AnimatableStrokeDasharrayList() { }
- static PassRefPtr<AnimatableStrokeDasharrayList> create(const Vector<SVGLength>& lengths)
+ static PassRefPtr<AnimatableStrokeDasharrayList> create(PassRefPtr<SVGLengthList> lengths)
{
return adoptRef(new AnimatableStrokeDasharrayList(lengths));
}
- Vector<SVGLength> toSVGLengthVector() const;
+ PassRefPtr<SVGLengthList> toSVGLengthList() const;
protected:
virtual PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue*, double fraction) const OVERRIDE;
virtual bool usesDefaultInterpolationWith(const AnimatableValue*) const OVERRIDE;
private:
- AnimatableStrokeDasharrayList(const Vector<SVGLength>&);
+ AnimatableStrokeDasharrayList(PassRefPtr<SVGLengthList>);
// This will consume the vector passed into it.
AnimatableStrokeDasharrayList(Vector<RefPtr<AnimatableValue> >& values)
: AnimatableRepeatable(values)

Powered by Google App Engine
This is Rietveld 408576698