OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // 3. Let output be an empty list of absolutely positioned CSS block boxes. | 72 // 3. Let output be an empty list of absolutely positioned CSS block boxes. |
73 | 73 |
74 // 4. If the user agent is exposing a user interface for video, add to | 74 // 4. If the user agent is exposing a user interface for video, add to |
75 // output one or more completely transparent positioned CSS block boxes that | 75 // output one or more completely transparent positioned CSS block boxes that |
76 // cover the same region as the user interface. | 76 // cover the same region as the user interface. |
77 | 77 |
78 // 5. If the last time these rules were run, the user agent was not exposing | 78 // 5. If the last time these rules were run, the user agent was not exposing |
79 // a user interface for video, but now it is, let reset be true. Otherwise, | 79 // a user interface for video, but now it is, let reset be true. Otherwise, |
80 // let reset be false. | 80 // let reset be false. |
81 | 81 |
82 // FIXME: Implement step 4 and 5. | |
83 | |
84 // 6. Let tracks be the subset of video's list of text tracks that have as | 82 // 6. Let tracks be the subset of video's list of text tracks that have as |
85 // their rules for updating the text track rendering these rules for | 83 // their rules for updating the text track rendering these rules for |
86 // updating the display of WebVTT text tracks, and whose text track mode is | 84 // updating the display of WebVTT text tracks, and whose text track mode is |
87 // showing or showing by default. | 85 // showing or showing by default. |
88 // 7. Let cues be an empty list of text track cues. | 86 // 7. Let cues be an empty list of text track cues. |
89 // 8. For each track track in tracks, append to cues all the cues from | 87 // 8. For each track track in tracks, append to cues all the cues from |
90 // track's list of cues that have their text track cue active flag set. | 88 // track's list of cues that have their text track cue active flag set. |
91 CueList activeCues = video.cueTimeline().currentlyActiveCues(); | 89 CueList activeCues = video.cueTimeline().currentlyActiveCues(); |
92 | 90 |
93 // 9. If reset is false, then, for each text track cue cue in cues: if cue's | 91 // 9. If reset is false, then, for each text track cue cue in cues: if cue's |
(...skipping 14 matching lines...) Expand all Loading... |
108 if (!cue->track() || !cue->track()->isRendered() || !cue->isActive()) | 106 if (!cue->track() || !cue->track()->isRendered() || !cue->isActive()) |
109 continue; | 107 continue; |
110 | 108 |
111 cue->updateDisplay(*this); | 109 cue->updateDisplay(*this); |
112 } | 110 } |
113 | 111 |
114 // 11. Return output. | 112 // 11. Return output. |
115 } | 113 } |
116 | 114 |
117 } // namespace blink | 115 } // namespace blink |
OLD | NEW |