| OLD | NEW |
| 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 26 matching lines...) Expand all Loading... |
| 37 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
| 38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
| 39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 class RenderObject; | 43 class RenderObject; |
| 44 class Element; | 44 class Element; |
| 45 | 45 |
| 46 // FIXME: Move these to CompositorAnimations | 46 // FIXME: Move these to CompositorAnimations |
| 47 bool shouldCompositeForActiveAnimations(const RenderObject&, bool renderViewInCo
mpositingMode); | 47 bool shouldCompositeForActiveAnimations(const RenderObject&); |
| 48 bool hasActiveAnimations(const RenderObject&, CSSPropertyID); | 48 bool hasActiveAnimations(const RenderObject&, CSSPropertyID); |
| 49 bool hasActiveAnimationsOnCompositor(const RenderObject&, CSSPropertyID); | 49 bool hasActiveAnimationsOnCompositor(const RenderObject&, CSSPropertyID); |
| 50 | 50 |
| 51 class ActiveAnimations { | 51 class ActiveAnimations { |
| 52 public: | 52 public: |
| 53 // Animations that are currently active for this element, their effects will
be applied | 53 // 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. | 54 // during a style recalc. CSS Transitions are included in this stack. |
| 55 AnimationStack& defaultStack() { return m_defaultStack; } | 55 AnimationStack& defaultStack() { return m_defaultStack; } |
| 56 // Tracks the state of active CSS Animations and Transitions. The individual
animations | 56 // Tracks the state of active CSS Animations and Transitions. The individual
animations |
| 57 // will also be part of the default stack, but the mapping betwen animation
name and | 57 // will also be part of the default stack, but the mapping betwen animation
name and |
| (...skipping 14 matching lines...) Expand all Loading... |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 AnimationStack m_defaultStack; | 74 AnimationStack m_defaultStack; |
| 75 CSSAnimations m_cssAnimations; | 75 CSSAnimations m_cssAnimations; |
| 76 PlayerSet m_players; | 76 PlayerSet m_players; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace WebCore | 79 } // namespace WebCore |
| 80 | 80 |
| 81 #endif | 81 #endif |
| OLD | NEW |