| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 return m_document && m_document->page(); | 89 return m_document && m_document->page(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void AnimationTimeline::animationAttached(Animation& animation) | 92 void AnimationTimeline::animationAttached(Animation& animation) |
| 93 { | 93 { |
| 94 DCHECK_EQ(animation.timeline(), this); | 94 DCHECK_EQ(animation.timeline(), this); |
| 95 DCHECK(!m_animations.contains(&animation)); | 95 DCHECK(!m_animations.contains(&animation)); |
| 96 m_animations.add(&animation); | 96 m_animations.add(&animation); |
| 97 } | 97 } |
| 98 | 98 |
| 99 Animation* AnimationTimeline::play(AnimationEffect* child) | 99 Animation* AnimationTimeline::play(AnimationEffectReadOnly* child) |
| 100 { | 100 { |
| 101 if (!m_document) | 101 if (!m_document) |
| 102 return nullptr; | 102 return nullptr; |
| 103 | 103 |
| 104 Animation* animation = Animation::create(child, this); | 104 Animation* animation = Animation::create(child, this); |
| 105 DCHECK(m_animations.contains(animation)); | 105 DCHECK(m_animations.contains(animation)); |
| 106 | 106 |
| 107 animation->play(); | 107 animation->play(); |
| 108 DCHECK(m_animationsNeedingUpdate.contains(animation)); | 108 DCHECK(m_animationsNeedingUpdate.contains(animation)); |
| 109 | 109 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 | 339 |
| 340 DEFINE_TRACE(AnimationTimeline) | 340 DEFINE_TRACE(AnimationTimeline) |
| 341 { | 341 { |
| 342 visitor->trace(m_document); | 342 visitor->trace(m_document); |
| 343 visitor->trace(m_timing); | 343 visitor->trace(m_timing); |
| 344 visitor->trace(m_animationsNeedingUpdate); | 344 visitor->trace(m_animationsNeedingUpdate); |
| 345 visitor->trace(m_animations); | 345 visitor->trace(m_animations); |
| 346 } | 346 } |
| 347 | 347 |
| 348 } // namespace blink | 348 } // namespace blink |
| OLD | NEW |