| 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 3734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3745 void HTMLMediaElement::removeUserGestureRequirement() | 3745 void HTMLMediaElement::removeUserGestureRequirement() |
| 3746 { | 3746 { |
| 3747 m_userGestureRequiredForPlay = false; | 3747 m_userGestureRequiredForPlay = false; |
| 3748 } | 3748 } |
| 3749 | 3749 |
| 3750 void HTMLMediaElement::setInitialPlayWithoutUserGestures(bool value) | 3750 void HTMLMediaElement::setInitialPlayWithoutUserGestures(bool value) |
| 3751 { | 3751 { |
| 3752 m_initialPlayWithoutUserGesture = value; | 3752 m_initialPlayWithoutUserGesture = value; |
| 3753 } | 3753 } |
| 3754 | 3754 |
| 3755 void HTMLMediaElement::notifyPositionMayHaveChanged() |
| 3756 { |
| 3757 m_autoplayHelper.positionChanged(); |
| 3758 } |
| 3759 |
| 3760 void HTMLMediaElement::triggerAutoplayViewportCheck() |
| 3761 { |
| 3762 m_autoplayHelper.triggerAutoplayViewportCheck(); |
| 3763 } |
| 3764 |
| 3755 #if ENABLE(WEB_AUDIO) | 3765 #if ENABLE(WEB_AUDIO) |
| 3756 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3766 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
| 3757 { | 3767 { |
| 3758 if (!Heap::isHeapObjectAlive(m_audioSourceNode)) | 3768 if (!Heap::isHeapObjectAlive(m_audioSourceNode)) |
| 3759 audioSourceProvider().setClient(nullptr); | 3769 audioSourceProvider().setClient(nullptr); |
| 3760 } | 3770 } |
| 3761 | 3771 |
| 3762 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) | 3772 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) |
| 3763 { | 3773 { |
| 3764 MutexLocker locker(provideInputLock); | 3774 MutexLocker locker(provideInputLock); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3814 visitor->trace(m_client); | 3824 visitor->trace(m_client); |
| 3815 } | 3825 } |
| 3816 | 3826 |
| 3817 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) | 3827 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) |
| 3818 { | 3828 { |
| 3819 visitor->trace(m_client); | 3829 visitor->trace(m_client); |
| 3820 } | 3830 } |
| 3821 #endif | 3831 #endif |
| 3822 | 3832 |
| 3823 } | 3833 } |
| OLD | NEW |