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

Unified Diff: Source/core/animation/animatable/AnimatableStrokeDasharrayList.h

Issue 975733002: Use Length for the stroke-dasharray property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test for style-change responsive-ness. Created 5 years, 10 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
Index: Source/core/animation/animatable/AnimatableStrokeDasharrayList.h
diff --git a/Source/core/animation/animatable/AnimatableStrokeDasharrayList.h b/Source/core/animation/animatable/AnimatableStrokeDasharrayList.h
index 8fbc0b362a8971b12f9638a2ba7c759d557726a4..e49b1ba88b91e6aeff93d70e694e406c0323b3a7 100644
--- a/Source/core/animation/animatable/AnimatableStrokeDasharrayList.h
+++ b/Source/core/animation/animatable/AnimatableStrokeDasharrayList.h
@@ -32,7 +32,7 @@
#define AnimatableStrokeDasharrayList_h
#include "core/animation/animatable/AnimatableRepeatable.h"
-#include "core/svg/SVGLengthList.h"
+#include "core/layout/style/SVGLayoutStyleDefs.h"
namespace blink {
@@ -40,12 +40,12 @@ class AnimatableStrokeDasharrayList final : public AnimatableRepeatable {
public:
virtual ~AnimatableStrokeDasharrayList() { }
- static PassRefPtrWillBeRawPtr<AnimatableStrokeDasharrayList> create(PassRefPtrWillBeRawPtr<SVGLengthList> lengths)
+ static PassRefPtrWillBeRawPtr<AnimatableStrokeDasharrayList> create(PassRefPtr<SVGDashArray> lengths, float zoom)
{
- return adoptRefWillBeNoop(new AnimatableStrokeDasharrayList(lengths));
+ return adoptRefWillBeNoop(new AnimatableStrokeDasharrayList(lengths, zoom));
}
- PassRefPtrWillBeRawPtr<SVGLengthList> toSVGLengthList() const;
+ PassRefPtr<SVGDashArray> toSVGDashArray(float zoom) const;
DECLARE_VIRTUAL_TRACE();
@@ -54,7 +54,7 @@ protected:
virtual bool usesDefaultInterpolationWith(const AnimatableValue*) const override;
private:
- explicit AnimatableStrokeDasharrayList(PassRefPtrWillBeRawPtr<SVGLengthList>);
+ AnimatableStrokeDasharrayList(PassRefPtr<SVGDashArray>, float zoom);
// This will consume the vector passed into it.
AnimatableStrokeDasharrayList(WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >& values)
: AnimatableRepeatable(values)

Powered by Google App Engine
This is Rietveld 408576698