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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h

Issue 2620303002: Refactor how UseCounter::SyntheticKeyframesInCompositedCSSAnimation is counted (Closed)
Patch Set: g cl set-commit Created 3 years, 11 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 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 AnimatableValueKeyframe_h 5 #ifndef AnimatableValueKeyframe_h
6 #define AnimatableValueKeyframe_h 6 #define AnimatableValueKeyframe_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/Keyframe.h" 9 #include "core/animation/Keyframe.h"
10 #include "core/animation/animatable/AnimatableValue.h" 10 #include "core/animation/animatable/AnimatableValue.h"
(...skipping 28 matching lines...) Expand all
39 EffectModel::CompositeOperation composite) { 39 EffectModel::CompositeOperation composite) {
40 return adoptRef(new PropertySpecificKeyframe( 40 return adoptRef(new PropertySpecificKeyframe(
41 offset, std::move(easing), std::move(value), composite)); 41 offset, std::move(easing), std::move(value), composite));
42 } 42 }
43 43
44 AnimatableValue* value() const { return m_value.get(); } 44 AnimatableValue* value() const { return m_value.get(); }
45 PassRefPtr<AnimatableValue> getAnimatableValue() const final { 45 PassRefPtr<AnimatableValue> getAnimatableValue() const final {
46 return m_value; 46 return m_value;
47 } 47 }
48 48
49 bool isNeutral() const final { return m_value->isNeutral(); }
49 PassRefPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe( 50 PassRefPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(
50 double offset, 51 double offset,
51 PassRefPtr<TimingFunction> easing) const final; 52 PassRefPtr<TimingFunction> easing) const final;
52 PassRefPtr<Interpolation> createInterpolation( 53 PassRefPtr<Interpolation> createInterpolation(
53 PropertyHandle, 54 PropertyHandle,
54 const Keyframe::PropertySpecificKeyframe& end) const final; 55 const Keyframe::PropertySpecificKeyframe& end) const final;
55 56
56 private: 57 private:
57 PropertySpecificKeyframe(double offset, 58 PropertySpecificKeyframe(double offset,
58 PassRefPtr<TimingFunction> easing, 59 PassRefPtr<TimingFunction> easing,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 value.isAnimatableValueKeyframe()); 98 value.isAnimatableValueKeyframe());
98 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, 99 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe,
99 Keyframe::PropertySpecificKeyframe, 100 Keyframe::PropertySpecificKeyframe,
100 value, 101 value,
101 value->isAnimatableValuePropertySpecificKeyframe(), 102 value->isAnimatableValuePropertySpecificKeyframe(),
102 value.isAnimatableValuePropertySpecificKeyframe()); 103 value.isAnimatableValuePropertySpecificKeyframe());
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif 107 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698