| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 | 63 |
| 64 void TextTrackRegionList::add(PassRefPtr<TextTrackRegion> region) | 64 void TextTrackRegionList::add(PassRefPtr<TextTrackRegion> region) |
| 65 { | 65 { |
| 66 m_list.append(region); | 66 m_list.append(region); |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool TextTrackRegionList::remove(TextTrackRegion* region) | 69 bool TextTrackRegionList::remove(TextTrackRegion* region) |
| 70 { | 70 { |
| 71 size_t index = m_list.find(region); | 71 size_t index = m_list.find(region); |
| 72 if (index == notFound) | 72 if (index == kNotFound) |
| 73 return false; | 73 return false; |
| 74 | 74 |
| 75 m_list.remove(index); | 75 m_list.remove(index); |
| 76 return true; | 76 return true; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void TextTrackRegionList::clear() | 79 void TextTrackRegionList::clear() |
| 80 { | 80 { |
| 81 m_list.clear(); | 81 m_list.clear(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace WebCore | 84 } // namespace WebCore |
| 85 | 85 |
| 86 #endif | 86 #endif |
| OLD | NEW |