| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 , m_initialPlayWithoutUserGestures(false) | 364 , m_initialPlayWithoutUserGestures(false) |
| 365 , m_autoplayMediaCounted(false) | 365 , m_autoplayMediaCounted(false) |
| 366 , m_audioTracks(AudioTrackList::create(*this)) | 366 , m_audioTracks(AudioTrackList::create(*this)) |
| 367 , m_videoTracks(VideoTrackList::create(*this)) | 367 , m_videoTracks(VideoTrackList::create(*this)) |
| 368 , m_textTracks(nullptr) | 368 , m_textTracks(nullptr) |
| 369 #if ENABLE(WEB_AUDIO) | 369 #if ENABLE(WEB_AUDIO) |
| 370 , m_audioSourceNode(nullptr) | 370 , m_audioSourceNode(nullptr) |
| 371 #endif | 371 #endif |
| 372 { | 372 { |
| 373 #if ENABLE(OILPAN) | 373 #if ENABLE(OILPAN) |
| 374 ThreadState::current()->registerPreFinalizer(*this); | 374 ThreadState::current()->registerPreFinalizer(this); |
| 375 #endif | 375 #endif |
| 376 ASSERT(RuntimeEnabledFeatures::mediaEnabled()); | 376 ASSERT(RuntimeEnabledFeatures::mediaEnabled()); |
| 377 | 377 |
| 378 WTF_LOG(Media, "HTMLMediaElement::HTMLMediaElement(%p)", this); | 378 WTF_LOG(Media, "HTMLMediaElement::HTMLMediaElement(%p)", this); |
| 379 | 379 |
| 380 if (document.settings() && document.settings()->mediaPlaybackRequiresUserGes
ture()) | 380 if (document.settings() && document.settings()->mediaPlaybackRequiresUserGes
ture()) |
| 381 m_userGestureRequiredForPlay = true; | 381 m_userGestureRequiredForPlay = true; |
| 382 | 382 |
| 383 setHasCustomStyleCallbacks(); | 383 setHasCustomStyleCallbacks(); |
| 384 addElementToDocumentMap(this, &document); | 384 addElementToDocumentMap(this, &document); |
| (...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3680 | 3680 |
| 3681 #if ENABLE(WEB_AUDIO) | 3681 #if ENABLE(WEB_AUDIO) |
| 3682 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3682 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
| 3683 { | 3683 { |
| 3684 if (!Heap::isHeapObjectAlive(m_audioSourceNode) && audioSourceProvider()) | 3684 if (!Heap::isHeapObjectAlive(m_audioSourceNode) && audioSourceProvider()) |
| 3685 audioSourceProvider()->setClient(nullptr); | 3685 audioSourceProvider()->setClient(nullptr); |
| 3686 } | 3686 } |
| 3687 #endif | 3687 #endif |
| 3688 | 3688 |
| 3689 } | 3689 } |
| OLD | NEW |