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

Side by Side Diff: third_party/WebKit/Source/core/animation/PathSVGInterpolation.h

Issue 1416273002: Remove SVGPathElement.pathSegList and related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PathSVGInterpolation_h 5 #ifndef PathSVGInterpolation_h
6 #define PathSVGInterpolation_h 6 #define PathSVGInterpolation_h
7 7
8 #include "core/animation/SVGInterpolation.h" 8 #include "core/animation/SVGInterpolation.h"
9 #include "core/svg/SVGPathSeg.h" 9 #include "core/svg/SVGPathData.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class PathSVGInterpolation : public SVGInterpolation { 13 class PathSVGInterpolation : public SVGInterpolation {
14 public: 14 public:
15 static PassRefPtr<PathSVGInterpolation> maybeCreate(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) ; 15 static PassRefPtr<PathSVGInterpolation> maybeCreate(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) ;
16 16
17 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final; 17 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final;
18 18
19 private: 19 private:
20 PathSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpo lableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, 20 PathSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpo lableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute,
21 Vector<SVGPathSegType> pathSegTypes) 21 Vector<SVGPathSegType> pathSegTypes)
22 : SVGInterpolation(start, end, attribute) 22 : SVGInterpolation(start, end, attribute)
23 { 23 {
24 m_pathSegTypes.swap(pathSegTypes); 24 m_pathSegTypes.swap(pathSegTypes);
25 } 25 }
26 26
27 static PassRefPtrWillBeRawPtr<SVGPropertyBase> fromInterpolableValue(const I nterpolableValue&, const Vector<SVGPathSegType>&, SVGPathElement*); 27 static PassRefPtrWillBeRawPtr<SVGPropertyBase> fromInterpolableValue(const I nterpolableValue&, const Vector<SVGPathSegType>&);
28 28
29 Vector<SVGPathSegType> m_pathSegTypes; 29 Vector<SVGPathSegType> m_pathSegTypes;
30 }; 30 };
31 31
32 } 32 }
33 33
34 #endif // NumberSVGInterpolation_h 34 #endif // NumberSVGInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698