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

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

Issue 791583002: Oilpan: remove redundant WILL_BE_EAGERLY_TRACED() declarations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | « Source/core/animation/AnimationStack.h ('k') | Source/core/animation/Interpolation.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 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 InterpolableValue_h 5 #ifndef InterpolableValue_h
6 #define InterpolableValue_h 6 #define InterpolableValue_h
7 7
8 #include "core/animation/animatable/AnimatableValue.h" 8 #include "core/animation/animatable/AnimatableValue.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/OwnPtr.h" 10 #include "wtf/OwnPtr.h"
(...skipping 20 matching lines...) Expand all
31 friend class Interpolation; 31 friend class Interpolation;
32 32
33 // Keep interpolate private, but allow calls within the hierarchy without 33 // Keep interpolate private, but allow calls within the hierarchy without
34 // knowledge of type. 34 // knowledge of type.
35 friend class DeferredLegacyStyleInterpolation; 35 friend class DeferredLegacyStyleInterpolation;
36 friend class InterpolableNumber; 36 friend class InterpolableNumber;
37 friend class InterpolableBool; 37 friend class InterpolableBool;
38 friend class InterpolableList; 38 friend class InterpolableList;
39 }; 39 };
40 40
41 WILL_BE_EAGERLY_TRACED(InterpolableValue);
42
43 class InterpolableNumber final : public InterpolableValue { 41 class InterpolableNumber final : public InterpolableValue {
44 public: 42 public:
45 static PassOwnPtrWillBeRawPtr<InterpolableNumber> create(double value) 43 static PassOwnPtrWillBeRawPtr<InterpolableNumber> create(double value)
46 { 44 {
47 return adoptPtrWillBeNoop(new InterpolableNumber(value)); 45 return adoptPtrWillBeNoop(new InterpolableNumber(value));
48 } 46 }
49 47
50 virtual bool isNumber() const override final { return true; } 48 virtual bool isNumber() const override final { return true; }
51 double value() const { return m_value; } 49 double value() const { return m_value; }
52 virtual PassOwnPtrWillBeRawPtr<InterpolableValue> clone() const override fin al { return create(m_value); } 50 virtual PassOwnPtrWillBeRawPtr<InterpolableValue> clone() const override fin al { return create(m_value); }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 }; 155 };
158 156
159 DEFINE_TYPE_CASTS(InterpolableNumber, InterpolableValue, value, value->isNumber( ), value.isNumber()); 157 DEFINE_TYPE_CASTS(InterpolableNumber, InterpolableValue, value, value->isNumber( ), value.isNumber());
160 DEFINE_TYPE_CASTS(InterpolableBool, InterpolableValue, value, value->isBool(), v alue.isBool()); 158 DEFINE_TYPE_CASTS(InterpolableBool, InterpolableValue, value, value->isBool(), v alue.isBool());
161 DEFINE_TYPE_CASTS(InterpolableList, InterpolableValue, value, value->isList(), v alue.isList()); 159 DEFINE_TYPE_CASTS(InterpolableList, InterpolableValue, value, value->isList(), v alue.isList());
162 DEFINE_TYPE_CASTS(InterpolableAnimatableValue, InterpolableValue, value, value-> isAnimatableValue(), value.isAnimatableValue()); 160 DEFINE_TYPE_CASTS(InterpolableAnimatableValue, InterpolableValue, value, value-> isAnimatableValue(), value.isAnimatableValue());
163 161
164 } 162 }
165 163
166 #endif 164 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/AnimationStack.h ('k') | Source/core/animation/Interpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698