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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return m_list.find(cue); | 44 return m_list.find(cue); |
45 } | 45 } |
46 | 46 |
47 TextTrackCue* TextTrackCueList::item(unsigned index) const | 47 TextTrackCue* TextTrackCueList::item(unsigned index) const |
48 { | 48 { |
49 if (index < m_list.size()) | 49 if (index < m_list.size()) |
50 return m_list[index].get(); | 50 return m_list[index].get(); |
51 return 0; | 51 return 0; |
52 } | 52 } |
53 | 53 |
54 TextTrackCue* TextTrackCueList::getCueById(const String& id) const | 54 TextTrackCue* TextTrackCueList::getCueById(const AtomicString& id) const |
55 { | 55 { |
56 for (size_t i = 0; i < m_list.size(); ++i) { | 56 for (size_t i = 0; i < m_list.size(); ++i) { |
57 if (m_list[i]->id() == id) | 57 if (m_list[i]->id() == id) |
58 return m_list[i].get(); | 58 return m_list[i].get(); |
59 } | 59 } |
60 return 0; | 60 return 0; |
61 } | 61 } |
62 | 62 |
63 TextTrackCueList* TextTrackCueList::activeCues() | 63 TextTrackCueList* TextTrackCueList::activeCues() |
64 { | 64 { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 137 } |
138 | 138 |
139 void TextTrackCueList::invalidateCueIndexes(size_t start) | 139 void TextTrackCueList::invalidateCueIndexes(size_t start) |
140 { | 140 { |
141 for (size_t i = start; i < m_list.size(); ++i) | 141 for (size_t i = start; i < m_list.size(); ++i) |
142 m_list[i]->invalidateCueIndex(); | 142 m_list[i]->invalidateCueIndex(); |
143 } | 143 } |
144 | 144 |
145 } // namespace WebCore | 145 } // namespace WebCore |
146 | 146 |
OLD | NEW |