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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class CSSAnimations final { | 52 class CSSAnimations final { |
53 WTF_MAKE_NONCOPYABLE(CSSAnimations); | 53 WTF_MAKE_NONCOPYABLE(CSSAnimations); |
54 DISALLOW_ALLOCATION(); | 54 DISALLOW_ALLOCATION(); |
55 public: | 55 public: |
56 CSSAnimations(); | 56 CSSAnimations(); |
57 | 57 |
58 bool isAnimationForInspector(const Animation&); | 58 bool isAnimationForInspector(const Animation&); |
59 bool isTransitionAnimationForInspector(const Animation&) const; | 59 bool isTransitionAnimationForInspector(const Animation&) const; |
60 | 60 |
61 static const StylePropertyShorthand& propertiesForTransitionAll(); | 61 static const StylePropertyShorthand& propertiesForTransitionAll(); |
62 static bool isAllowedAnimation(CSSPropertyID); | 62 static bool isAnimatableProperty(CSSPropertyID); |
63 static PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> calculateUpdate(const Elem
ent* animatingElement, Element&, const ComputedStyle&, ComputedStyle* parentStyl
e, StyleResolver*); | 63 static PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> calculateUpdate(const Elem
ent* animatingElement, Element&, const ComputedStyle&, ComputedStyle* parentStyl
e, StyleResolver*); |
64 | 64 |
65 void setPendingUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> update) { m
_pendingUpdate = update; } | 65 void setPendingUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> update) { m
_pendingUpdate = update; } |
66 void maybeApplyPendingUpdate(Element*); | 66 void maybeApplyPendingUpdate(Element*); |
67 bool isEmpty() const { return m_animations.isEmpty() && m_transitions.isEmpt
y() && !m_pendingUpdate; } | 67 bool isEmpty() const { return m_animations.isEmpty() && m_transitions.isEmpt
y() && !m_pendingUpdate; } |
68 void cancel(); | 68 void cancel(); |
69 | 69 |
70 DECLARE_TRACE(); | 70 DECLARE_TRACE(); |
71 | 71 |
72 private: | 72 private: |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 RawPtrWillBeMember<Element> m_transitionTarget; | 177 RawPtrWillBeMember<Element> m_transitionTarget; |
178 const CSSPropertyID m_property; | 178 const CSSPropertyID m_property; |
179 AnimationEffect::Phase m_previousPhase; | 179 AnimationEffect::Phase m_previousPhase; |
180 }; | 180 }; |
181 }; | 181 }; |
182 | 182 |
183 } // namespace blink | 183 } // namespace blink |
184 | 184 |
185 #endif | 185 #endif |
OLD | NEW |