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 3560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3571 | 3571 |
3572 void HTMLMediaElement::defaultEventHandler(Event* event) | 3572 void HTMLMediaElement::defaultEventHandler(Event* event) |
3573 { | 3573 { |
3574 if (event->type() == EventTypeNames::focusin) { | 3574 if (event->type() == EventTypeNames::focusin) { |
3575 if (hasMediaControls()) | 3575 if (hasMediaControls()) |
3576 mediaControls()->mediaElementFocused(); | 3576 mediaControls()->mediaElementFocused(); |
3577 } | 3577 } |
3578 HTMLElement::defaultEventHandler(event); | 3578 HTMLElement::defaultEventHandler(event); |
3579 } | 3579 } |
3580 | 3580 |
3581 void HTMLMediaElement::trace(Visitor* visitor) | 3581 DEFINE_TRACE(HTMLMediaElement) |
3582 { | 3582 { |
3583 #if ENABLE(OILPAN) | 3583 #if ENABLE(OILPAN) |
3584 visitor->trace(m_playedTimeRanges); | 3584 visitor->trace(m_playedTimeRanges); |
3585 visitor->trace(m_asyncEventQueue); | 3585 visitor->trace(m_asyncEventQueue); |
3586 visitor->trace(m_error); | 3586 visitor->trace(m_error); |
3587 visitor->trace(m_currentSourceNode); | 3587 visitor->trace(m_currentSourceNode); |
3588 visitor->trace(m_nextChildNodeToConsider); | 3588 visitor->trace(m_nextChildNodeToConsider); |
3589 visitor->trace(m_mediaSource); | 3589 visitor->trace(m_mediaSource); |
3590 visitor->trace(m_audioTracks); | 3590 visitor->trace(m_audioTracks); |
3591 visitor->trace(m_videoTracks); | 3591 visitor->trace(m_videoTracks); |
3592 visitor->trace(m_cueTimeline); | 3592 visitor->trace(m_cueTimeline); |
3593 visitor->trace(m_textTracks); | 3593 visitor->trace(m_textTracks); |
3594 visitor->trace(m_textTracksWhenResourceSelectionBegan); | 3594 visitor->trace(m_textTracksWhenResourceSelectionBegan); |
3595 visitor->trace(m_mediaController); | 3595 visitor->trace(m_mediaController); |
3596 #if ENABLE(WEB_AUDIO) | 3596 #if ENABLE(WEB_AUDIO) |
3597 visitor->registerWeakMembers<HTMLMediaElement, &HTMLMediaElement::clearWeakM
embers>(this); | 3597 visitor->template registerWeakMembers<HTMLMediaElement, &HTMLMediaElement::c
learWeakMembers>(this); |
3598 #endif | 3598 #endif |
3599 HeapSupplementable<HTMLMediaElement>::trace(visitor); | 3599 HeapSupplementable<HTMLMediaElement>::trace(visitor); |
3600 #endif | 3600 #endif |
3601 HTMLElement::trace(visitor); | 3601 HTMLElement::trace(visitor); |
3602 ActiveDOMObject::trace(visitor); | 3602 ActiveDOMObject::trace(visitor); |
3603 } | 3603 } |
3604 | 3604 |
3605 void HTMLMediaElement::createPlaceholderTracksIfNecessary() | 3605 void HTMLMediaElement::createPlaceholderTracksIfNecessary() |
3606 { | 3606 { |
3607 if (!RuntimeEnabledFeatures::audioVideoTracksEnabled()) | 3607 if (!RuntimeEnabledFeatures::audioVideoTracksEnabled()) |
(...skipping 24 matching lines...) Expand all Loading... |
3632 | 3632 |
3633 #if ENABLE(WEB_AUDIO) | 3633 #if ENABLE(WEB_AUDIO) |
3634 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3634 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
3635 { | 3635 { |
3636 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) | 3636 if (!visitor->isAlive(m_audioSourceNode) && audioSourceProvider()) |
3637 audioSourceProvider()->setClient(nullptr); | 3637 audioSourceProvider()->setClient(nullptr); |
3638 } | 3638 } |
3639 #endif | 3639 #endif |
3640 | 3640 |
3641 } | 3641 } |
OLD | NEW |