| 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 } | 636 } |
| 637 | 637 |
| 638 void Animation::stop() | 638 void Animation::stop() |
| 639 { | 639 { |
| 640 PlayStateUpdateScope updateScope(*this, TimingUpdateOnDemand); | 640 PlayStateUpdateScope updateScope(*this, TimingUpdateOnDemand); |
| 641 | 641 |
| 642 m_finished = true; | 642 m_finished = true; |
| 643 m_pendingFinishedEvent = nullptr; | 643 m_pendingFinishedEvent = nullptr; |
| 644 } | 644 } |
| 645 | 645 |
| 646 bool Animation::dispatchEvent(PassRefPtrWillBeRawPtr<Event> event) | 646 bool Animation::dispatchEventInternal(PassRefPtrWillBeRawPtr<Event> event) |
| 647 { | 647 { |
| 648 if (m_pendingFinishedEvent == event) | 648 if (m_pendingFinishedEvent == event) |
| 649 m_pendingFinishedEvent = nullptr; | 649 m_pendingFinishedEvent = nullptr; |
| 650 return EventTargetWithInlineData::dispatchEvent(event); | 650 return EventTargetWithInlineData::dispatchEventInternal(event); |
| 651 } | 651 } |
| 652 | 652 |
| 653 double Animation::playbackRate() const | 653 double Animation::playbackRate() const |
| 654 { | 654 { |
| 655 return m_playbackRate; | 655 return m_playbackRate; |
| 656 } | 656 } |
| 657 | 657 |
| 658 void Animation::setPlaybackRate(double playbackRate) | 658 void Animation::setPlaybackRate(double playbackRate) |
| 659 { | 659 { |
| 660 if (playbackRate == m_playbackRate) | 660 if (playbackRate == m_playbackRate) |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 visitor->trace(m_content); | 1088 visitor->trace(m_content); |
| 1089 visitor->trace(m_timeline); | 1089 visitor->trace(m_timeline); |
| 1090 visitor->trace(m_pendingFinishedEvent); | 1090 visitor->trace(m_pendingFinishedEvent); |
| 1091 visitor->trace(m_finishedPromise); | 1091 visitor->trace(m_finishedPromise); |
| 1092 visitor->trace(m_readyPromise); | 1092 visitor->trace(m_readyPromise); |
| 1093 EventTargetWithInlineData::trace(visitor); | 1093 EventTargetWithInlineData::trace(visitor); |
| 1094 ActiveDOMObject::trace(visitor); | 1094 ActiveDOMObject::trace(visitor); |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 } // namespace | 1097 } // namespace |
| OLD | NEW |