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

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

Issue 1431593004: Web Animations: Migrate SVG Rect interpolation to interpolation types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
(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 RectSVGInterpolation_h
6 #define RectSVGInterpolation_h
7
8 #include "core/animation/SVGInterpolation.h"
9 #include "core/svg/SVGRect.h"
10
11 namespace blink {
12
13 class SVGRect;
14
15 class RectSVGInterpolation : public SVGInterpolation {
16 public:
17 static PassRefPtr<RectSVGInterpolation> create(SVGPropertyBase* start, SVGPr opertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
18 {
19 return adoptRef(new RectSVGInterpolation(toInterpolableValue(start), toI nterpolableValue(end), attribute));
20 }
21
22 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final
23 {
24 return fromInterpolableValue(*m_cachedValue);
25 }
26
27 private:
28 RectSVGInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpo lableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
29 : SVGInterpolation(start, end, attribute)
30 {
31 }
32
33 static PassOwnPtr<InterpolableValue> toInterpolableValue(SVGPropertyBase*);
34
35 static PassRefPtrWillBeRawPtr<SVGRect> fromInterpolableValue(const Interpola bleValue&);
36 };
37
38 }
39
40 #endif // RectSVGInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698