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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 , m_videoTracks(VideoTrackList::create(*this)) | 361 , m_videoTracks(VideoTrackList::create(*this)) |
362 , m_textTracks(nullptr) | 362 , m_textTracks(nullptr) |
363 , m_ignoreTrackDisplayUpdate(0) | 363 , m_ignoreTrackDisplayUpdate(0) |
364 #if ENABLE(WEB_AUDIO) | 364 #if ENABLE(WEB_AUDIO) |
365 , m_audioSourceNode(nullptr) | 365 , m_audioSourceNode(nullptr) |
366 #endif | 366 #endif |
367 { | 367 { |
368 ASSERT(RuntimeEnabledFeatures::mediaEnabled()); | 368 ASSERT(RuntimeEnabledFeatures::mediaEnabled()); |
369 | 369 |
370 WTF_LOG(Media, "HTMLMediaElement::HTMLMediaElement"); | 370 WTF_LOG(Media, "HTMLMediaElement::HTMLMediaElement"); |
371 ScriptWrappable::init(this); | |
372 | 371 |
373 if (document.settings() && document.settings()->mediaPlaybackRequiresUserGes
ture()) | 372 if (document.settings() && document.settings()->mediaPlaybackRequiresUserGes
ture()) |
374 m_userGestureRequiredForPlay = true; | 373 m_userGestureRequiredForPlay = true; |
375 | 374 |
376 setHasCustomStyleCallbacks(); | 375 setHasCustomStyleCallbacks(); |
377 addElementToDocumentMap(this, &document); | 376 addElementToDocumentMap(this, &document); |
378 } | 377 } |
379 | 378 |
380 HTMLMediaElement::~HTMLMediaElement() | 379 HTMLMediaElement::~HTMLMediaElement() |
381 { | 380 { |
(...skipping 3589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3971 | 3970 |
3972 #if ENABLE(WEB_AUDIO) | 3971 #if ENABLE(WEB_AUDIO) |
3973 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3972 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
3974 { | 3973 { |
3975 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) | 3974 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) |
3976 audioSourceProvider()->setClient(0); | 3975 audioSourceProvider()->setClient(0); |
3977 } | 3976 } |
3978 #endif | 3977 #endif |
3979 | 3978 |
3980 } | 3979 } |
OLD | NEW |