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

Side by Side Diff: third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 CSSAnimationUpdate_h 5 #ifndef CSSAnimationUpdate_h
6 #define CSSAnimationUpdate_h 6 #define CSSAnimationUpdate_h
7 7
8 #include "core/animation/AnimationStack.h" 8 #include "core/animation/AnimationStack.h"
9 #include "core/animation/InertEffect.h" 9 #include "core/animation/InertEffect.h"
10 #include "core/animation/Interpolation.h" 10 #include "core/animation/Interpolation.h"
11 #include "core/animation/KeyframeEffectModel.h" 11 #include "core/animation/KeyframeEffectModel.h"
12 #include "core/animation/css/CSSAnimatableValueFactory.h" 12 #include "core/animation/css/CSSAnimatableValueFactory.h"
13 #include "core/animation/css/CSSPropertyEquality.h" 13 #include "core/animation/css/CSSPropertyEquality.h"
14 #include "core/css/CSSKeyframesRule.h" 14 #include "core/css/CSSKeyframesRule.h"
15 #include "core/layout/LayoutObject.h" 15 #include "core/layout/LayoutObject.h"
16 #include "wtf/Allocator.h" 16 #include "wtf/Allocator.h"
17 #include "wtf/HashMap.h" 17 #include "wtf/HashMap.h"
18 #include "wtf/Vector.h" 18 #include "wtf/Vector.h"
19 #include "wtf/text/AtomicString.h" 19 #include "wtf/text/AtomicString.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 class Animation; 23 class Animation;
24 24
25 // This class stores the CSS Animations/Transitions information we use during a style recalc. 25 // This class stores the CSS Animations/Transitions information we use during a style recalc.
26 // This includes updates to animations/transitions as well as the Interpolations to be applied. 26 // This includes updates to animations/transitions as well as the Interpolations to be applied.
27 class CSSAnimationUpdate final { 27 class CSSAnimationUpdate final {
28 DISALLOW_ALLOCATION(); 28 DISALLOW_NEW();
29 WTF_MAKE_NONCOPYABLE(CSSAnimationUpdate); 29 WTF_MAKE_NONCOPYABLE(CSSAnimationUpdate);
30 public: 30 public:
31 class NewAnimation { 31 class NewAnimation {
32 ALLOW_ONLY_INLINE_ALLOCATION(); 32 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
33 public: 33 public:
34 NewAnimation() 34 NewAnimation()
35 : styleRuleVersion(0) 35 : styleRuleVersion(0)
36 { 36 {
37 } 37 }
38 38
39 NewAnimation(AtomicString name, size_t nameIndex, InertEffect* effect, T iming timing, PassRefPtrWillBeRawPtr<StyleRuleKeyframes> styleRule) 39 NewAnimation(AtomicString name, size_t nameIndex, InertEffect* effect, T iming timing, PassRefPtrWillBeRawPtr<StyleRuleKeyframes> styleRule)
40 : name(name) 40 : name(name)
41 , nameIndex(nameIndex) 41 , nameIndex(nameIndex)
42 , effect(effect) 42 , effect(effect)
(...skipping 11 matching lines...) Expand all
54 54
55 AtomicString name; 55 AtomicString name;
56 size_t nameIndex; 56 size_t nameIndex;
57 Member<InertEffect> effect; 57 Member<InertEffect> effect;
58 Timing timing; 58 Timing timing;
59 RefPtrWillBeMember<StyleRuleKeyframes> styleRule; 59 RefPtrWillBeMember<StyleRuleKeyframes> styleRule;
60 unsigned styleRuleVersion; 60 unsigned styleRuleVersion;
61 }; 61 };
62 62
63 class UpdatedAnimation { 63 class UpdatedAnimation {
64 ALLOW_ONLY_INLINE_ALLOCATION(); 64 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
65 public: 65 public:
66 UpdatedAnimation() 66 UpdatedAnimation()
67 : styleRuleVersion(0) 67 : styleRuleVersion(0)
68 { 68 {
69 } 69 }
70 70
71 UpdatedAnimation(size_t index, Animation* animation, InertEffect* effect , Timing specifiedTiming, PassRefPtrWillBeRawPtr<StyleRuleKeyframes> styleRule) 71 UpdatedAnimation(size_t index, Animation* animation, InertEffect* effect , Timing specifiedTiming, PassRefPtrWillBeRawPtr<StyleRuleKeyframes> styleRule)
72 : index(index) 72 : index(index)
73 , animation(animation) 73 , animation(animation)
74 , effect(effect) 74 , effect(effect)
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void finishTransition(CSSPropertyID id) { m_finishedTransitions.add(id); } 175 void finishTransition(CSSPropertyID id) { m_finishedTransitions.add(id); }
176 176
177 const HeapVector<NewAnimation>& newAnimations() const { return m_newAnimatio ns; } 177 const HeapVector<NewAnimation>& newAnimations() const { return m_newAnimatio ns; }
178 const Vector<size_t>& cancelledAnimationIndices() const { return m_cancelled AnimationIndices; } 178 const Vector<size_t>& cancelledAnimationIndices() const { return m_cancelled AnimationIndices; }
179 const HeapHashSet<Member<const Animation>>& suppressedAnimations() const { r eturn m_suppressedAnimations; } 179 const HeapHashSet<Member<const Animation>>& suppressedAnimations() const { r eturn m_suppressedAnimations; }
180 const Vector<size_t>& animationIndicesWithPauseToggled() const { return m_an imationIndicesWithPauseToggled; } 180 const Vector<size_t>& animationIndicesWithPauseToggled() const { return m_an imationIndicesWithPauseToggled; }
181 const HeapVector<UpdatedAnimation>& animationsWithUpdates() const { return m _animationsWithUpdates; } 181 const HeapVector<UpdatedAnimation>& animationsWithUpdates() const { return m _animationsWithUpdates; }
182 const HeapVector<Member<Animation>>& updatedCompositorKeyframes() const { re turn m_updatedCompositorKeyframes; } 182 const HeapVector<Member<Animation>>& updatedCompositorKeyframes() const { re turn m_updatedCompositorKeyframes; }
183 183
184 struct NewTransition { 184 struct NewTransition {
185 ALLOW_ONLY_INLINE_ALLOCATION(); 185 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
186 public: 186 public:
187 DEFINE_INLINE_TRACE() 187 DEFINE_INLINE_TRACE()
188 { 188 {
189 visitor->trace(effect); 189 visitor->trace(effect);
190 } 190 }
191 191
192 CSSPropertyID id; 192 CSSPropertyID id;
193 const AnimatableValue* from; 193 const AnimatableValue* from;
194 const AnimatableValue* to; 194 const AnimatableValue* to;
195 Member<InertEffect> effect; 195 Member<InertEffect> effect;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 friend class PendingAnimationUpdate; 251 friend class PendingAnimationUpdate;
252 }; 252 };
253 253
254 } // namespace blink 254 } // namespace blink
255 255
256 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::CSSAnimationUpdate::NewAnimation); 256 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::CSSAnimationUpdate::NewAnimation);
257 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::CSSAnimationUpdate::UpdatedAnimation); 257 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::CSSAnimationUpdate::UpdatedAnimation);
258 258
259 #endif 259 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698