| Index: Source/core/html/track/VTTRegionList.cpp
|
| diff --git a/Source/core/html/track/TextTrackRegionList.cpp b/Source/core/html/track/VTTRegionList.cpp
|
| similarity index 81%
|
| rename from Source/core/html/track/TextTrackRegionList.cpp
|
| rename to Source/core/html/track/VTTRegionList.cpp
|
| index b03193f9b5a87f41eac2e8b4dcc3b9cb5614faf0..61d78f629f59c89065142e34b45a6436a6008b56 100644
|
| --- a/Source/core/html/track/TextTrackRegionList.cpp
|
| +++ b/Source/core/html/track/VTTRegionList.cpp
|
| @@ -24,20 +24,20 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/html/track/TextTrackRegionList.h"
|
| +#include "core/html/track/VTTRegionList.h"
|
|
|
| namespace WebCore {
|
|
|
| -TextTrackRegionList::TextTrackRegionList()
|
| +VTTRegionList::VTTRegionList()
|
| {
|
| }
|
|
|
| -unsigned long TextTrackRegionList::length() const
|
| +unsigned long VTTRegionList::length() const
|
| {
|
| return m_list.size();
|
| }
|
|
|
| -TextTrackRegion* TextTrackRegionList::item(unsigned index) const
|
| +VTTRegion* VTTRegionList::item(unsigned index) const
|
| {
|
| if (index < m_list.size())
|
| return m_list[index].get();
|
| @@ -45,7 +45,7 @@ TextTrackRegion* TextTrackRegionList::item(unsigned index) const
|
| return 0;
|
| }
|
|
|
| -TextTrackRegion* TextTrackRegionList::getRegionById(const String& id) const
|
| +VTTRegion* VTTRegionList::getRegionById(const String& id) const
|
| {
|
| if (id.isEmpty())
|
| return 0;
|
| @@ -58,12 +58,12 @@ TextTrackRegion* TextTrackRegionList::getRegionById(const String& id) const
|
| return 0;
|
| }
|
|
|
| -void TextTrackRegionList::add(PassRefPtr<TextTrackRegion> region)
|
| +void VTTRegionList::add(PassRefPtr<VTTRegion> region)
|
| {
|
| m_list.append(region);
|
| }
|
|
|
| -bool TextTrackRegionList::remove(TextTrackRegion* region)
|
| +bool VTTRegionList::remove(VTTRegion* region)
|
| {
|
| size_t index = m_list.find(region);
|
| if (index == kNotFound)
|
| @@ -73,7 +73,7 @@ bool TextTrackRegionList::remove(TextTrackRegion* region)
|
| return true;
|
| }
|
|
|
| -void TextTrackRegionList::clear()
|
| +void VTTRegionList::clear()
|
| {
|
| m_list.clear();
|
| }
|
|
|