| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 3726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3737 void HTMLMediaElement::removeUserGestureRequirement() | 3737 void HTMLMediaElement::removeUserGestureRequirement() |
| 3738 { | 3738 { |
| 3739 m_userGestureRequiredForPlay = false; | 3739 m_userGestureRequiredForPlay = false; |
| 3740 } | 3740 } |
| 3741 | 3741 |
| 3742 void HTMLMediaElement::setInitialPlayWithoutUserGestures(bool value) | 3742 void HTMLMediaElement::setInitialPlayWithoutUserGestures(bool value) |
| 3743 { | 3743 { |
| 3744 m_initialPlayWithoutUserGesture = value; | 3744 m_initialPlayWithoutUserGesture = value; |
| 3745 } | 3745 } |
| 3746 | 3746 |
| 3747 void HTMLMediaElement::notifyPositionMayHaveChanged() |
| 3748 { |
| 3749 m_autoplayHelper.positionChanged(); |
| 3750 } |
| 3751 |
| 3752 void HTMLMediaElement::triggerAutoplayViewportCheck() |
| 3753 { |
| 3754 m_autoplayHelper.triggerAutoplayViewportCheck(); |
| 3755 } |
| 3756 |
| 3747 #if ENABLE(WEB_AUDIO) | 3757 #if ENABLE(WEB_AUDIO) |
| 3748 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3758 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
| 3749 { | 3759 { |
| 3750 if (!Heap::isHeapObjectAlive(m_audioSourceNode)) | 3760 if (!Heap::isHeapObjectAlive(m_audioSourceNode)) |
| 3751 audioSourceProvider().setClient(nullptr); | 3761 audioSourceProvider().setClient(nullptr); |
| 3752 } | 3762 } |
| 3753 | 3763 |
| 3754 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) | 3764 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) |
| 3755 { | 3765 { |
| 3756 MutexLocker locker(provideInputLock); | 3766 MutexLocker locker(provideInputLock); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3806 visitor->trace(m_client); | 3816 visitor->trace(m_client); |
| 3807 } | 3817 } |
| 3808 | 3818 |
| 3809 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) | 3819 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) |
| 3810 { | 3820 { |
| 3811 visitor->trace(m_client); | 3821 visitor->trace(m_client); |
| 3812 } | 3822 } |
| 3813 #endif | 3823 #endif |
| 3814 | 3824 |
| 3815 } | 3825 } |
| OLD | NEW |