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

Side by Side Diff: Source/core/animation/DefaultSVGInterpolation.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: Intentional nullptr access Created 5 years, 7 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 DefaultSVGInterpolation_h 5 #ifndef DefaultSVGInterpolation_h
6 #define DefaultSVGInterpolation_h 6 #define DefaultSVGInterpolation_h
7 7
8 #include "core/animation/SVGInterpolation.h" 8 #include "core/animation/SVGInterpolation.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class DefaultSVGInterpolation : public SVGInterpolation { 12 class DefaultSVGInterpolation : public SVGInterpolation {
13 public: 13 public:
14 static PassRefPtrWillBeRawPtr<DefaultSVGInterpolation> create(SVGPropertyBas e* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute) 14 static DefaultSVGInterpolation* create(SVGPropertyBase* start, SVGPropertyBa se* end, PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute)
15 { 15 {
16 return adoptRefWillBeNoop(new DefaultSVGInterpolation(start, end, attrib ute)); 16 return new DefaultSVGInterpolation(start, end, attribute);
17 } 17 }
18 18
19 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement &) const override final; 19 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> interpolatedValue(SVGElement &) const override final;
20 20
21 DECLARE_VIRTUAL_TRACE(); 21 DECLARE_VIRTUAL_TRACE();
22 22
23 private: 23 private:
24 DefaultSVGInterpolation(SVGPropertyBase* start, SVGPropertyBase* end, PassRe fPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute); 24 DefaultSVGInterpolation(SVGPropertyBase* start, SVGPropertyBase* end, PassRe fPtrWillBeRawPtr<SVGAnimatedPropertyBase> attribute);
25 25
26 RefPtrWillBeMember<SVGPropertyBase> m_start; 26 RefPtrWillBeMember<SVGPropertyBase> m_start;
27 RefPtrWillBeMember<SVGPropertyBase> m_end; 27 RefPtrWillBeMember<SVGPropertyBase> m_end;
28 }; 28 };
29 29
30 } 30 }
31 31
32 #endif // DefaultSVGInterpolation_h 32 #endif // DefaultSVGInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698