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

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

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 StyleInterpolation_h 5 #ifndef StyleInterpolation_h
6 #define StyleInterpolation_h 6 #define StyleInterpolation_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/animation/Interpolation.h" 10 #include "core/animation/Interpolation.h"
(...skipping 27 matching lines...) Expand all
38 bool isStyleInterpolation() const final { return true; } 38 bool isStyleInterpolation() const final { return true; }
39 virtual bool isDeferredLegacyStyleInterpolation() const { return false; } 39 virtual bool isDeferredLegacyStyleInterpolation() const { return false; }
40 40
41 CSSPropertyID id() const { return m_id; } 41 CSSPropertyID id() const { return m_id; }
42 42
43 PropertyHandle property() const final 43 PropertyHandle property() const final
44 { 44 {
45 return PropertyHandle(id()); 45 return PropertyHandle(id());
46 } 46 }
47 47
48 DEFINE_INLINE_VIRTUAL_TRACE()
49 {
50 Interpolation::trace(visitor);
51 }
52
53 protected: 48 protected:
54 CSSPropertyID m_id; 49 CSSPropertyID m_id;
55 50
56 StyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnP trWillBeRawPtr<InterpolableValue> end, CSSPropertyID id) 51 StyleInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpola bleValue> end, CSSPropertyID id)
57 : Interpolation(start, end) 52 : Interpolation(start, end)
58 , m_id(id) 53 , m_id(id)
59 { 54 {
60 } 55 }
61 }; 56 };
62 57
63 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp olation(), value.isStyleInterpolation()); 58 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp olation(), value.isStyleInterpolation());
64 59
65 } 60 }
66 61
67 #endif 62 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698