summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/html/track/vtt/VTTRegionList.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/track/vtt/VTTRegionList.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/track/vtt/VTTRegionList.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/track/vtt/VTTRegionList.h b/chromium/third_party/WebKit/Source/core/html/track/vtt/VTTRegionList.h
index 35e1b8e8d47..edb87d601b3 100644
--- a/chromium/third_party/WebKit/Source/core/html/track/vtt/VTTRegionList.h
+++ b/chromium/third_party/WebKit/Source/core/html/track/vtt/VTTRegionList.h
@@ -33,28 +33,27 @@
namespace WebCore {
-class VTTRegionList : public RefCounted<VTTRegionList> {
+class VTTRegionList FINAL : public RefCountedWillBeGarbageCollected<VTTRegionList> {
public:
- static PassRefPtr<VTTRegionList> create()
+ static PassRefPtrWillBeRawPtr<VTTRegionList> create()
{
- return adoptRef(new VTTRegionList());
+ return adoptRefWillBeNoop(new VTTRegionList());
}
- ~VTTRegionList() { }
-
unsigned long length() const;
VTTRegion* item(unsigned index) const;
VTTRegion* getRegionById(const String&) const;
- void add(PassRefPtr<VTTRegion>);
+ void add(PassRefPtrWillBeRawPtr<VTTRegion>);
bool remove(VTTRegion*);
+ void trace(Visitor*);
+
private:
VTTRegionList();
- void clear();
- Vector<RefPtr<VTTRegion> > m_list;
+ WillBeHeapVector<RefPtrWillBeMember<VTTRegion> > m_list;
};
} // namespace WebCore