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

Side by Side Diff: Source/core/html/track/TextTrackList.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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/track/TextTrackCueList.cpp ('k') | Source/core/html/track/TrackEvent.cpp » ('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) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 22 matching lines...) Expand all
33 #include "core/html/track/LoadableTextTrack.h" 33 #include "core/html/track/LoadableTextTrack.h"
34 #include "core/html/track/TextTrack.h" 34 #include "core/html/track/TextTrack.h"
35 #include "core/html/track/TrackEvent.h" 35 #include "core/html/track/TrackEvent.h"
36 36
37 using namespace blink; 37 using namespace blink;
38 38
39 TextTrackList::TextTrackList(HTMLMediaElement* owner) 39 TextTrackList::TextTrackList(HTMLMediaElement* owner)
40 : m_owner(owner) 40 : m_owner(owner)
41 , m_asyncEventQueue(GenericEventQueue::create(this)) 41 , m_asyncEventQueue(GenericEventQueue::create(this))
42 { 42 {
43 ScriptWrappable::init(this);
44 } 43 }
45 44
46 TextTrackList::~TextTrackList() 45 TextTrackList::~TextTrackList()
47 { 46 {
48 #if !ENABLE(OILPAN) 47 #if !ENABLE(OILPAN)
49 ASSERT(!m_owner); 48 ASSERT(!m_owner);
50 49
51 // TextTrackList and m_asyncEventQueue always become unreachable 50 // TextTrackList and m_asyncEventQueue always become unreachable
52 // together. So TextTrackList and m_asyncEventQueue are destructed in the 51 // together. So TextTrackList and m_asyncEventQueue are destructed in the
53 // same GC. We don't need to close it explicitly in Oilpan. 52 // same GC. We don't need to close it explicitly in Oilpan.
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 331
333 void TextTrackList::trace(Visitor* visitor) 332 void TextTrackList::trace(Visitor* visitor)
334 { 333 {
335 visitor->trace(m_owner); 334 visitor->trace(m_owner);
336 visitor->trace(m_asyncEventQueue); 335 visitor->trace(m_asyncEventQueue);
337 visitor->trace(m_addTrackTracks); 336 visitor->trace(m_addTrackTracks);
338 visitor->trace(m_elementTracks); 337 visitor->trace(m_elementTracks);
339 visitor->trace(m_inbandTracks); 338 visitor->trace(m_inbandTracks);
340 EventTargetWithInlineData::trace(visitor); 339 EventTargetWithInlineData::trace(visitor);
341 } 340 }
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCueList.cpp ('k') | Source/core/html/track/TrackEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698