| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 class AnimationEventDelegate FINAL : public AnimationNode::EventDelegate { | 220 class AnimationEventDelegate FINAL : public AnimationNode::EventDelegate { |
| 221 public: | 221 public: |
| 222 AnimationEventDelegate(Element* target, const AtomicString& name) | 222 AnimationEventDelegate(Element* target, const AtomicString& name) |
| 223 : m_target(target) | 223 : m_target(target) |
| 224 , m_name(name) | 224 , m_name(name) |
| 225 , m_previousPhase(AnimationNode::PhaseNone) | 225 , m_previousPhase(AnimationNode::PhaseNone) |
| 226 , m_previousIteration(nullValue()) | 226 , m_previousIteration(nullValue()) |
| 227 { | 227 { |
| 228 } | 228 } |
| 229 virtual void onEventCondition(const AnimationNode*) OVERRIDE; | 229 virtual void onEventCondition(const AnimationNode*) OVERRIDE; |
| 230 virtual void trace(Visitor*) OVERRIDE; |
| 231 |
| 230 private: | 232 private: |
| 231 void maybeDispatch(Document::ListenerType, const AtomicString& eventName
, double elapsedTime); | 233 void maybeDispatch(Document::ListenerType, const AtomicString& eventName
, double elapsedTime); |
| 232 Element* m_target; | 234 RawPtrWillBeMember<Element> m_target; |
| 233 const AtomicString m_name; | 235 const AtomicString m_name; |
| 234 AnimationNode::Phase m_previousPhase; | 236 AnimationNode::Phase m_previousPhase; |
| 235 double m_previousIteration; | 237 double m_previousIteration; |
| 236 }; | 238 }; |
| 237 | 239 |
| 238 class TransitionEventDelegate FINAL : public AnimationNode::EventDelegate { | 240 class TransitionEventDelegate FINAL : public AnimationNode::EventDelegate { |
| 239 public: | 241 public: |
| 240 TransitionEventDelegate(Element* target, CSSPropertyID property) | 242 TransitionEventDelegate(Element* target, CSSPropertyID property) |
| 241 : m_target(target) | 243 : m_target(target) |
| 242 , m_property(property) | 244 , m_property(property) |
| 243 , m_previousPhase(AnimationNode::PhaseNone) | 245 , m_previousPhase(AnimationNode::PhaseNone) |
| 244 { | 246 { |
| 245 } | 247 } |
| 246 virtual void onEventCondition(const AnimationNode*) OVERRIDE; | 248 virtual void onEventCondition(const AnimationNode*) OVERRIDE; |
| 249 virtual void trace(Visitor*) OVERRIDE; |
| 250 |
| 247 private: | 251 private: |
| 248 Element* m_target; | 252 RawPtrWillBeMember<Element> m_target; |
| 249 const CSSPropertyID m_property; | 253 const CSSPropertyID m_property; |
| 250 AnimationNode::Phase m_previousPhase; | 254 AnimationNode::Phase m_previousPhase; |
| 251 }; | 255 }; |
| 252 }; | 256 }; |
| 253 | 257 |
| 254 } // namespace blink | 258 } // namespace blink |
| 255 | 259 |
| 256 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::CSSAnimationUpdate::NewAnimation); | 260 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::CSSAnimationUpdate::NewAnimation); |
| 257 | 261 |
| 258 #endif | 262 #endif |
| OLD | NEW |