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

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

Issue 1200333006: Oilpan: Support nested pre-finalizers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698