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

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

Issue 252843005: Fix TextTrackList event attribute lookups when in a detached state. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698