OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |