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

Side by Side Diff: Source/core/animation/AngleSVGInterpolation.h

Issue 1226293002: Fix virtual/override/final usage in Source/core/{animation,css,style}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/animation/Animation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 AngleSVGInterpolation_h 5 #ifndef AngleSVGInterpolation_h
6 #define AngleSVGInterpolation_h 6 #define AngleSVGInterpolation_h
7 7
8 #include "core/animation/SVGInterpolation.h" 8 #include "core/animation/SVGInterpolation.h"
9 #include "core/svg/SVGAngle.h" 9 #include "core/svg/SVGAngle.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class SVGInteger; 13 class SVGInteger;
14 14
15 class AngleSVGInterpolation : public SVGInterpolation { 15 class AngleSVGInterpolation : public SVGInterpolation {
16 public: 16 public:
17 static PassRefPtrWillBeRawPtr<AngleSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> at tribute) 17 static PassRefPtrWillBeRawPtr<AngleSVGInterpolation> create(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> at tribute)
18 { 18 {
19 return adoptRefWillBeNoop(new AngleSVGInterpolation(toInterpolableValue( start), toInterpolableValue(end), attribute)); 19 return adoptRefWillBeNoop(new AngleSVGInterpolation(toInterpolableValue( start), toInterpolableValue(end), attribute));
20 } 20 }
21 21
22 static bool canCreateFrom(SVGPropertyBase* value) 22 static bool canCreateFrom(SVGPropertyBase* value)
23 { 23 {
24 return toSVGAngle(value)->orientType()->enumValue() == SVGMarkerOrientAn gle; 24 return toSVGAngle(value)->orientType()->enumValue() == SVGMarkerOrientAn gle;
25 } 25 }
26 26
27 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement &) const override final 27 PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement&) const final
28 { 28 {
29 return fromInterpolableValue(m_cachedValue.get()); 29 return fromInterpolableValue(m_cachedValue.get());
30 } 30 }
31 31
32 DEFINE_INLINE_VIRTUAL_TRACE() 32 DEFINE_INLINE_VIRTUAL_TRACE()
33 { 33 {
34 SVGInterpolation::trace(visitor); 34 SVGInterpolation::trace(visitor);
35 } 35 }
36 36
37 private: 37 private:
(...skipping 12 matching lines...) Expand all
50 double doubleValue = toInterpolableNumber(value)->value(); 50 double doubleValue = toInterpolableNumber(value)->value();
51 RefPtrWillBeRawPtr<SVGAngle> result = SVGAngle::create(); 51 RefPtrWillBeRawPtr<SVGAngle> result = SVGAngle::create();
52 result->newValueSpecifiedUnits(SVGAngle::SVG_ANGLETYPE_DEG, doubleValue) ; 52 result->newValueSpecifiedUnits(SVGAngle::SVG_ANGLETYPE_DEG, doubleValue) ;
53 return result.release(); 53 return result.release();
54 } 54 }
55 }; 55 };
56 56
57 } 57 }
58 58
59 #endif // AngleSVGInterpolation_h 59 #endif // AngleSVGInterpolation_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/Animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698