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

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

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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/shadow/SpinButtonElement.cpp ('k') | Source/core/html/track/vtt/VTTRegion.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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 // 4.8.10.12.3 Sourcing out-of-band text tracks (continued) 81 // 4.8.10.12.3 Sourcing out-of-band text tracks (continued)
82 82
83 // 2. Let URL be the track URL of the track element. 83 // 2. Let URL be the track URL of the track element.
84 m_url = url; 84 m_url = url;
85 85
86 // 3. Asynchronously run the remaining steps, while continuing with whatever task 86 // 3. Asynchronously run the remaining steps, while continuing with whatever task
87 // was responsible for creating the text track or changing the text track mo de. 87 // was responsible for creating the text track or changing the text track mo de.
88 if (!m_loadTimer.isActive()) 88 if (!m_loadTimer.isActive())
89 m_loadTimer.startOneShot(0); 89 m_loadTimer.startOneShot(0, FROM_HERE);
90 } 90 }
91 91
92 void LoadableTextTrack::loadTimerFired(Timer<LoadableTextTrack>*) 92 void LoadableTextTrack::loadTimerFired(Timer<LoadableTextTrack>*)
93 { 93 {
94 if (m_loader) 94 if (m_loader)
95 m_loader->cancelLoad(); 95 m_loader->cancelLoad();
96 96
97 if (!m_trackElement) 97 if (!m_trackElement)
98 return; 98 return;
99 99
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 if (track == m_trackElement) 161 if (track == m_trackElement)
162 return index; 162 return index;
163 ++index; 163 ++index;
164 } 164 }
165 ASSERT_NOT_REACHED(); 165 ASSERT_NOT_REACHED();
166 166
167 return 0; 167 return 0;
168 } 168 }
169 169
170 } // namespace WebCore 170 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/shadow/SpinButtonElement.cpp ('k') | Source/core/html/track/vtt/VTTRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698