| Index: third_party/WebKit/Source/core/html/track/TextTrackList.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/track/TextTrackList.cpp b/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
|
| index 5defe1dede3e202f61bb418205c131557fb1eeb9..760641d377cf51ee549ffbcd776d359508854914 100644
|
| --- a/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
|
| +++ b/third_party/WebKit/Source/core/html/track/TextTrackList.cpp
|
| @@ -47,7 +47,7 @@ unsigned TextTrackList::length() const {
|
|
|
| int TextTrackList::getTrackIndex(TextTrack* textTrack) {
|
| if (textTrack->trackType() == TextTrack::TrackElement)
|
| - return static_cast<LoadableTextTrack*>(textTrack)->trackElementIndex();
|
| + return toLoadableTextTrack(textTrack)->trackElementIndex();
|
|
|
| if (textTrack->trackType() == TextTrack::AddTrack)
|
| return m_elementTracks.size() + m_addTrackTracks.find(textTrack);
|
| @@ -171,7 +171,7 @@ void TextTrackList::append(TextTrack* track) {
|
| m_addTrackTracks.push_back(TraceWrapperMember<TextTrack>(this, track));
|
| } else if (track->trackType() == TextTrack::TrackElement) {
|
| // Insert tracks added for <track> element in tree order.
|
| - size_t index = static_cast<LoadableTextTrack*>(track)->trackElementIndex();
|
| + size_t index = toLoadableTextTrack(track)->trackElementIndex();
|
| m_elementTracks.insert(index, TraceWrapperMember<TextTrack>(this, track));
|
| } else if (track->trackType() == TextTrack::InBand) {
|
| m_inbandTracks.push_back(TraceWrapperMember<TextTrack>(this, track));
|
|
|