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

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

Issue 1302463002: Make classes and structures in Source/core/animation fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/core/animation/ElementAnimation.h ('k') | Source/core/animation/InterpolableValue.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 #include "wtf/RefPtr.h" 38 #include "wtf/RefPtr.h"
39 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class CSSAnimations; 43 class CSSAnimations;
44 44
45 using AnimationCountedSet = WillBeHeapHashCountedSet<RawPtrWillBeWeakMember<Anim ation>>; 45 using AnimationCountedSet = WillBeHeapHashCountedSet<RawPtrWillBeWeakMember<Anim ation>>;
46 46
47 class ElementAnimations : public NoBaseWillBeGarbageCollectedFinalized<ElementAn imations> { 47 class ElementAnimations : public NoBaseWillBeGarbageCollectedFinalized<ElementAn imations> {
48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ElementAnimations);
48 WTF_MAKE_NONCOPYABLE(ElementAnimations); 49 WTF_MAKE_NONCOPYABLE(ElementAnimations);
49 public: 50 public:
50 ElementAnimations(); 51 ElementAnimations();
51 ~ElementAnimations(); 52 ~ElementAnimations();
52 53
53 // Animations that are currently active for this element, their effects will be applied 54 // Animations that are currently active for this element, their effects will be applied
54 // during a style recalc. CSS Transitions are included in this stack. 55 // during a style recalc. CSS Transitions are included in this stack.
55 AnimationStack& defaultStack() { return m_defaultStack; } 56 AnimationStack& defaultStack() { return m_defaultStack; }
56 const AnimationStack& defaultStack() const { return m_defaultStack; } 57 const AnimationStack& defaultStack() const { return m_defaultStack; }
57 // Tracks the state of active CSS Animations and Transitions. The individual animations 58 // Tracks the state of active CSS Animations and Transitions. The individual animations
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #endif 98 #endif
98 99
99 // CSSAnimations and DeferredLegacyStyleInterpolation checks if a style chan ge is due to animation. 100 // CSSAnimations and DeferredLegacyStyleInterpolation checks if a style chan ge is due to animation.
100 friend class CSSAnimations; 101 friend class CSSAnimations;
101 friend class DeferredLegacyStyleInterpolation; 102 friend class DeferredLegacyStyleInterpolation;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // ElementAnimations_h 107 #endif // ElementAnimations_h
OLDNEW
« no previous file with comments | « Source/core/animation/ElementAnimation.h ('k') | Source/core/animation/InterpolableValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698