| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 class CSSAnimations FINAL { | 73 class CSSAnimations FINAL { |
| 74 public: | 74 public: |
| 75 static bool needsUpdate(const Element*, const RenderStyle*); | 75 static bool needsUpdate(const Element*, const RenderStyle*); |
| 76 static PassOwnPtr<CSSAnimationUpdate> calculateUpdate(const Element*, EDispl
ay, const CSSAnimations*, const CSSAnimationDataList*, StyleResolver*); | 76 static PassOwnPtr<CSSAnimationUpdate> calculateUpdate(const Element*, EDispl
ay, const CSSAnimations*, const CSSAnimationDataList*, StyleResolver*); |
| 77 void update(Element*, const RenderStyle*); | 77 void update(Element*, const RenderStyle*); |
| 78 bool isEmpty() const { return m_animations.isEmpty(); } | 78 bool isEmpty() const { return m_animations.isEmpty(); } |
| 79 void cancel(); | 79 void cancel(); |
| 80 private: | 80 private: |
| 81 typedef HashMap<StringImpl*, RefPtr<Player> > AnimationMap; | 81 typedef HashMap<StringImpl*, RefPtr<Player> > AnimationMap; |
| 82 AnimationMap m_animations; | 82 AnimationMap m_animations; |
| 83 class EventDelegate FINAL : public TimedItemEventDelegate { | 83 class EventDelegate FINAL : public TimedItem::EventDelegate { |
| 84 public: | 84 public: |
| 85 EventDelegate(Element* target, const AtomicString& name) | 85 EventDelegate(Element* target, const AtomicString& name) |
| 86 : m_target(target) | 86 : m_target(target) |
| 87 , m_name(name) | 87 , m_name(name) |
| 88 { | 88 { |
| 89 } | 89 } |
| 90 virtual void onEventCondition(bool wasInPlay, bool isInPlay, double prev
iousIteration, double currentIteration) OVERRIDE; | 90 virtual void onEventCondition(bool isFirstSample, TimedItem::Phase previ
ousPhase, TimedItem::Phase currentPhase, double previousIteration, double curren
tIteration) OVERRIDE; |
| 91 private: | 91 private: |
| 92 void maybeDispatch(Document::ListenerType, AtomicString& eventName, doub
le elapsedTime); | 92 void maybeDispatch(Document::ListenerType, AtomicString& eventName, doub
le elapsedTime); |
| 93 Element* m_target; | 93 Element* m_target; |
| 94 const AtomicString m_name; | 94 const AtomicString m_name; |
| 95 }; | 95 }; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace WebCore | 98 } // namespace WebCore |
| 99 | 99 |
| 100 #endif | 100 #endif |
| OLD | NEW |