| OLD | NEW |
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return; | 161 return; |
| 162 | 162 |
| 163 // 4. Run the remainder of these steps in parallel, allowing whatever caused
these steps to run to continue. | 163 // 4. Run the remainder of these steps in parallel, allowing whatever caused
these steps to run to continue. |
| 164 m_loadTimer.startOneShot(0, BLINK_FROM_HERE); | 164 m_loadTimer.startOneShot(0, BLINK_FROM_HERE); |
| 165 | 165 |
| 166 // 5. Top: Await a stable state. The synchronous section consists of the fol
lowing steps. (The steps in the | 166 // 5. Top: Await a stable state. The synchronous section consists of the fol
lowing steps. (The steps in the |
| 167 // synchronous section are marked with [X]) | 167 // synchronous section are marked with [X]) |
| 168 // FIXME: We use a timer to approximate a "stable state" - i.e. this is not
100% per spec. | 168 // FIXME: We use a timer to approximate a "stable state" - i.e. this is not
100% per spec. |
| 169 } | 169 } |
| 170 | 170 |
| 171 void HTMLTrackElement::loadTimerFired(Timer<HTMLTrackElement>*) | 171 void HTMLTrackElement::loadTimerFired(TimerBase*) |
| 172 { | 172 { |
| 173 DVLOG(TRACK_LOG_LEVEL) << "loadTimerFired"; | 173 DVLOG(TRACK_LOG_LEVEL) << "loadTimerFired"; |
| 174 | 174 |
| 175 // 6. [X] Set the text track readiness state to loading. | 175 // 6. [X] Set the text track readiness state to loading. |
| 176 setReadyState(LOADING); | 176 setReadyState(LOADING); |
| 177 | 177 |
| 178 // 7. [X] Let URL be the track URL of the track element. | 178 // 7. [X] Let URL be the track URL of the track element. |
| 179 KURL url = getNonEmptyURLAttribute(srcAttr); | 179 KURL url = getNonEmptyURLAttribute(srcAttr); |
| 180 | 180 |
| 181 // 8. [X] If the track element's parent is a media element then let CORS mod
e be the state of the parent media | 181 // 8. [X] If the track element's parent is a media element then let CORS mod
e be the state of the parent media |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 } | 333 } |
| 334 | 334 |
| 335 DEFINE_TRACE(HTMLTrackElement) | 335 DEFINE_TRACE(HTMLTrackElement) |
| 336 { | 336 { |
| 337 visitor->trace(m_track); | 337 visitor->trace(m_track); |
| 338 visitor->trace(m_loader); | 338 visitor->trace(m_loader); |
| 339 HTMLElement::trace(visitor); | 339 HTMLElement::trace(visitor); |
| 340 } | 340 } |
| 341 | 341 |
| 342 } // namespace blink | 342 } // namespace blink |
| OLD | NEW |