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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 return tracks->find(track) != kNotFound; | 257 return tracks->find(track) != kNotFound; |
258 } | 258 } |
259 | 259 |
260 const AtomicString& TextTrackList::interfaceName() const | 260 const AtomicString& TextTrackList::interfaceName() const |
261 { | 261 { |
262 return EventTargetNames::TextTrackList; | 262 return EventTargetNames::TextTrackList; |
263 } | 263 } |
264 | 264 |
265 ExecutionContext* TextTrackList::executionContext() const | 265 ExecutionContext* TextTrackList::executionContext() const |
266 { | 266 { |
267 ASSERT(m_owner); | 267 return m_owner ? m_owner->executionContext() : 0; |
268 return m_owner->executionContext(); | |
269 } | 268 } |
270 | 269 |
271 #if !ENABLE(OILPAN) | 270 #if !ENABLE(OILPAN) |
272 void TextTrackList::clearOwner() | 271 void TextTrackList::clearOwner() |
273 { | 272 { |
274 m_owner = nullptr; | 273 m_owner = nullptr; |
275 } | 274 } |
276 #endif | 275 #endif |
277 | 276 |
278 void TextTrackList::scheduleTrackEvent(const AtomicString& eventName, PassRefPtr
WillBeRawPtr<TextTrack> track) | 277 void TextTrackList::scheduleTrackEvent(const AtomicString& eventName, PassRefPtr
WillBeRawPtr<TextTrack> track) |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 return m_owner; | 331 return m_owner; |
333 } | 332 } |
334 | 333 |
335 void TextTrackList::trace(Visitor* visitor) | 334 void TextTrackList::trace(Visitor* visitor) |
336 { | 335 { |
337 visitor->trace(m_owner); | 336 visitor->trace(m_owner); |
338 visitor->trace(m_addTrackTracks); | 337 visitor->trace(m_addTrackTracks); |
339 visitor->trace(m_elementTracks); | 338 visitor->trace(m_elementTracks); |
340 visitor->trace(m_inbandTracks); | 339 visitor->trace(m_inbandTracks); |
341 } | 340 } |
OLD | NEW |