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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 4 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
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 SVGInterpolation_h 5 #ifndef SVGInterpolation_h
6 #define SVGInterpolation_h 6 #define SVGInterpolation_h
7 7
8 #include "core/animation/Interpolation.h" 8 #include "core/animation/Interpolation.h"
9 #include "core/animation/PropertyHandle.h" 9 #include "core/animation/PropertyHandle.h"
10 #include "core/svg/properties/SVGAnimatedProperty.h" 10 #include "core/svg/properties/SVGAnimatedProperty.h"
(...skipping 17 matching lines...) Expand all
28 28
29 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement &) const = 0; 29 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement &) const = 0;
30 30
31 DEFINE_INLINE_VIRTUAL_TRACE() 31 DEFINE_INLINE_VIRTUAL_TRACE()
32 { 32 {
33 visitor->trace(m_attribute); 33 visitor->trace(m_attribute);
34 Interpolation::trace(visitor); 34 Interpolation::trace(visitor);
35 } 35 }
36 36
37 protected: 37 protected:
38 SVGInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtr WillBeRawPtr<InterpolableValue> end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyB ase> attribute) 38 SVGInterpolation(InterpolableValue* start, InterpolableValue* end, PassRefPt rWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
39 : Interpolation(start, end) 39 : Interpolation(start, end)
40 , m_attribute(attribute) 40 , m_attribute(attribute)
41 { 41 {
42 } 42 }
43 43
44 RefPtrWillBeMember<SVGAnimatedPropertyBase> m_attribute; 44 RefPtrWillBeMember<SVGAnimatedPropertyBase> m_attribute;
45 }; 45 };
46 46
47 DEFINE_TYPE_CASTS(SVGInterpolation, Interpolation, value, value->isSVGInterpolat ion(), value.isSVGInterpolation()); 47 DEFINE_TYPE_CASTS(SVGInterpolation, Interpolation, value, value->isSVGInterpolat ion(), value.isSVGInterpolation());
48 48
49 } 49 }
50 50
51 #endif // SVGInterpolation_h 51 #endif // SVGInterpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/RectSVGInterpolation.cpp ('k') | Source/core/animation/SVGStrokeDasharrayStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698