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

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

Issue 1587533002: Add composition support for SVG Web Animation of x, y, dx, dy attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove expectation file Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
suzyh_UTC10 (ex-contributor) 2016/01/13 23:34:00 You can also delete the LengthSVGInterpolation.cpp
alancutter (OOO until 2018) 2016/01/14 00:44:01 Done.
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 LengthSVGInterpolation_h
6 #define LengthSVGInterpolation_h
7
8 #include "core/animation/SVGInterpolation.h"
9 #include "core/svg/SVGLength.h"
10 #include "core/svg/SVGLengthList.h"
11
12 namespace blink {
13
14 class LengthSVGInterpolation : public SVGInterpolation {
15 public:
16 typedef SVGLengthList ListType;
17 struct NonInterpolableType {
18 DISALLOW_NEW();
19 SVGLengthMode unitMode;
20 };
21
22 static bool canCreateFrom(SVGLength*, SVGLength*)
23 {
24 return true;
25 }
26
27 static PassRefPtrWillBeRawPtr<SVGLengthList> createList(const SVGAnimatedPro pertyBase&);
28
29 static PassRefPtr<LengthSVGInterpolation> create(SVGPropertyBase* start, SVG PropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute);
30
31 static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGLength*, const S VGAnimatedPropertyBase*, NonInterpolableType*);
32
33 static PassRefPtrWillBeRawPtr<SVGLength> fromInterpolableValue(const Interpo lableValue&, const NonInterpolableType&, const SVGElement*, const QualifiedName& );
34
35 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final;
36
37 private:
38 LengthSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Inter polableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute, co nst NonInterpolableType& modeData)
39 : SVGInterpolation(start, end, attribute)
40 , m_modeData(modeData)
41 {
42 }
43
44 const NonInterpolableType m_modeData;
45 };
46
47 }
48
49 #endif // LengthSVGInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698