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

Side by Side Diff: Source/core/animation/ImageStyleInterpolation.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, 3 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 ImageStyleInterpolation_h 5 #ifndef ImageStyleInterpolation_h
6 #define ImageStyleInterpolation_h 6 #define ImageStyleInterpolation_h
7 7
8 #include "core/animation/StyleInterpolation.h" 8 #include "core/animation/StyleInterpolation.h"
9 #include "core/css/CSSCrossfadeValue.h" 9 #include "core/css/CSSCrossfadeValue.h"
10 10
11 namespace blink { 11 namespace blink {
12 class ImageStyleInterpolation : public StyleInterpolation { 12 class ImageStyleInterpolation : public StyleInterpolation {
13 public: 13 public:
14 static PassRefPtrWillBeRawPtr<ImageStyleInterpolation> create(CSSValue& star t, CSSValue& end, CSSPropertyID id) 14 static ImageStyleInterpolation* create(CSSValue& start, CSSValue& end, CSSPr opertyID id)
15 { 15 {
16 return adoptRefWillBeNoop(new ImageStyleInterpolation(&start, &end, id)) ; 16 return new ImageStyleInterpolation(&start, &end, id);
17 } 17 }
18 18
19 DECLARE_VIRTUAL_TRACE(); 19 DECLARE_VIRTUAL_TRACE();
20 20
21 static bool canCreateFrom(const CSSValue&); 21 static bool canCreateFrom(const CSSValue&);
22 void apply(StyleResolverState&) const override; 22 void apply(StyleResolverState&) const override;
23 23
24 private: 24 private:
25 ImageStyleInterpolation(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWi llBeRawPtr<CSSValue> end, CSSPropertyID id) 25 ImageStyleInterpolation(PassRefPtrWillBeRawPtr<CSSValue> start, PassRefPtrWi llBeRawPtr<CSSValue> end, CSSPropertyID id)
26 : StyleInterpolation(InterpolableNumber::create(0.0), InterpolableNumber ::create(1.0), id) 26 : StyleInterpolation(InterpolableNumber::create(0.0), InterpolableNumber ::create(1.0), id)
27 , m_initialImage(start) 27 , m_initialImage(start)
28 , m_finalImage(end) 28 , m_finalImage(end)
29 { 29 {
30 } 30 }
31 31
32 RefPtrWillBeMember<CSSValue> m_initialImage; 32 RefPtrWillBeMember<CSSValue> m_initialImage;
33 RefPtrWillBeMember<CSSValue> m_finalImage; 33 RefPtrWillBeMember<CSSValue> m_finalImage;
34 }; 34 };
35 } 35 }
36 36
37 #endif // ImageStyleInterpolation_h 37 #endif // ImageStyleInterpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/ImageSliceStyleInterpolation.cpp ('k') | Source/core/animation/InertEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698