Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: Source/core/html/HTMLMediaElement.cpp

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLMeterElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLMeterElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698