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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 Keyframe_h 5 #ifndef Keyframe_h
6 #define Keyframe_h 6 #define Keyframe_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/animation/AnimationEffect.h" 9 #include "core/animation/AnimationEffect.h"
10 #include "core/animation/AnimationNode.h" 10 #include "core/animation/AnimationNode.h"
11 #include "core/animation/animatable/AnimatableValue.h" 11 #include "core/animation/animatable/AnimatableValue.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 using PropertySet = HashSet<CSSPropertyID>; 15 using PropertySet = HashSet<CSSPropertyID>;
16 16
17 class Element; 17 class Element;
18 class LayoutStyle; 18 class ComputedStyle;
19 19
20 // FIXME: Make Keyframe immutable 20 // FIXME: Make Keyframe immutable
21 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> { 21 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> {
22 public: 22 public:
23 virtual ~Keyframe() { } 23 virtual ~Keyframe() { }
24 24
25 void setOffset(double offset) { m_offset = offset; } 25 void setOffset(double offset) { m_offset = offset; }
26 double offset() const { return m_offset; } 26 double offset() const { return m_offset; }
27 27
28 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi te = composite; } 28 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi te = composite; }
(...skipping 24 matching lines...) Expand all
53 53
54 class PropertySpecificKeyframe : public NoBaseWillBeGarbageCollectedFinalize d<PropertySpecificKeyframe> { 54 class PropertySpecificKeyframe : public NoBaseWillBeGarbageCollectedFinalize d<PropertySpecificKeyframe> {
55 public: 55 public:
56 virtual ~PropertySpecificKeyframe() { } 56 virtual ~PropertySpecificKeyframe() { }
57 double offset() const { return m_offset; } 57 double offset() const { return m_offset; }
58 TimingFunction& easing() const { return *m_easing; } 58 TimingFunction& easing() const { return *m_easing; }
59 AnimationEffect::CompositeOperation composite() const { return m_composi te; } 59 AnimationEffect::CompositeOperation composite() const { return m_composi te; }
60 virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> cloneWithOffset (double offset) const = 0; 60 virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> cloneWithOffset (double offset) const = 0;
61 61
62 // FIXME: Remove this once CompositorAnimations no longer depends on Ani matableValues 62 // FIXME: Remove this once CompositorAnimations no longer depends on Ani matableValues
63 virtual void populateAnimatableValue(CSSPropertyID, Element&, const Layo utStyle* baseStyle) const { } 63 virtual void populateAnimatableValue(CSSPropertyID, Element&, const Comp utedStyle* baseStyle) const { }
64 virtual const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue () const = 0; 64 virtual const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue () const = 0;
65 65
66 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; } 66 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; }
67 virtual bool isStringPropertySpecificKeyframe() const { return false; } 67 virtual bool isStringPropertySpecificKeyframe() const { return false; }
68 68
69 virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> neutralKeyframe (double offset, PassRefPtr<TimingFunction> easing) const = 0; 69 virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> neutralKeyframe (double offset, PassRefPtr<TimingFunction> easing) const = 0;
70 virtual PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(C SSPropertyID, blink::Keyframe::PropertySpecificKeyframe& end, Element*, const La youtStyle* baseStyle) const = 0; 70 virtual PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(C SSPropertyID, blink::Keyframe::PropertySpecificKeyframe& end, Element*, const Co mputedStyle* baseStyle) const = 0;
71 71
72 DEFINE_INLINE_VIRTUAL_TRACE() { } 72 DEFINE_INLINE_VIRTUAL_TRACE() { }
73 73
74 protected: 74 protected:
75 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, AnimationEffect::CompositeOperation); 75 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, AnimationEffect::CompositeOperation);
76 76
77 double m_offset; 77 double m_offset;
78 RefPtr<TimingFunction> m_easing; 78 RefPtr<TimingFunction> m_easing;
79 AnimationEffect::CompositeOperation m_composite; 79 AnimationEffect::CompositeOperation m_composite;
80 }; 80 };
(...skipping 15 matching lines...) Expand all
96 } 96 }
97 97
98 double m_offset; 98 double m_offset;
99 AnimationEffect::CompositeOperation m_composite; 99 AnimationEffect::CompositeOperation m_composite;
100 RefPtr<TimingFunction> m_easing; 100 RefPtr<TimingFunction> m_easing;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // Keyframe_h 105 #endif // Keyframe_h
OLDNEW
« no previous file with comments | « Source/core/animation/InterpolationEffect.cpp ('k') | Source/core/animation/KeyframeEffectModel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698