| 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 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3755 ASSERT(code == AbortError || code == NotSupportedError); | 3755 ASSERT(code == AbortError || code == NotSupportedError); |
| 3756 | 3756 |
| 3757 for (auto& resolver: m_playResolvers) | 3757 for (auto& resolver: m_playResolvers) |
| 3758 resolver->reject(DOMException::create(code, message)); | 3758 resolver->reject(DOMException::create(code, message)); |
| 3759 | 3759 |
| 3760 m_playResolvers.clear(); | 3760 m_playResolvers.clear(); |
| 3761 } | 3761 } |
| 3762 | 3762 |
| 3763 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3763 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
| 3764 { | 3764 { |
| 3765 if (!Heap::isHeapObjectAlive(m_audioSourceNode)) | 3765 if (!ThreadHeap::isHeapObjectAlive(m_audioSourceNode)) |
| 3766 getAudioSourceProvider().setClient(nullptr); | 3766 getAudioSourceProvider().setClient(nullptr); |
| 3767 } | 3767 } |
| 3768 | 3768 |
| 3769 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) | 3769 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) |
| 3770 { | 3770 { |
| 3771 MutexLocker locker(provideInputLock); | 3771 MutexLocker locker(provideInputLock); |
| 3772 | 3772 |
| 3773 if (m_webAudioSourceProvider && provider != m_webAudioSourceProvider) | 3773 if (m_webAudioSourceProvider && provider != m_webAudioSourceProvider) |
| 3774 m_webAudioSourceProvider->setClient(nullptr); | 3774 m_webAudioSourceProvider->setClient(nullptr); |
| 3775 | 3775 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3859 | 3859 |
| 3860 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co
nst | 3860 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co
nst |
| 3861 { | 3861 { |
| 3862 IntRect result; | 3862 IntRect result; |
| 3863 if (LayoutObject* object = m_element->layoutObject()) | 3863 if (LayoutObject* object = m_element->layoutObject()) |
| 3864 result = object->absoluteBoundingBoxRect(); | 3864 result = object->absoluteBoundingBoxRect(); |
| 3865 return result; | 3865 return result; |
| 3866 } | 3866 } |
| 3867 | 3867 |
| 3868 } // namespace blink | 3868 } // namespace blink |
| OLD | NEW |