OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef PathSVGInterpolation_h | |
6 #define PathSVGInterpolation_h | |
7 | |
8 #include "core/animation/SVGInterpolation.h" | |
9 #include "core/svg/SVGPathData.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class PathSVGInterpolation : public SVGInterpolation { | |
14 public: | |
15 static PassRefPtr<PathSVGInterpolation> maybeCreate(SVGPropertyBase* start,
SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
; | |
16 | |
17 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const
final; | |
18 | |
19 private: | |
20 PathSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpo
lableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, | |
21 Vector<SVGPathSegType> pathSegTypes) | |
22 : SVGInterpolation(start, end, attribute) | |
23 { | |
24 m_pathSegTypes.swap(pathSegTypes); | |
25 } | |
26 | |
27 static PassRefPtrWillBeRawPtr<SVGPropertyBase> fromInterpolableValue(const I
nterpolableValue&, const Vector<SVGPathSegType>&); | |
28 | |
29 Vector<SVGPathSegType> m_pathSegTypes; | |
30 }; | |
31 | |
32 } | |
33 | |
34 #endif // NumberSVGInterpolation_h | |
OLD | NEW |