| Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| index ececc0032f57cb4c49c5cadaef855936f65caa32..23c359710c350911bc2a7c19859fe2e3a14a6d75 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| @@ -2687,10 +2687,9 @@ void HTMLMediaElement::removeTextTrack(WebInbandTextTrack* webTrack) {
|
| if (!m_textTracks)
|
| return;
|
|
|
| - // This cast is safe because we created the InbandTextTrack with the
|
| - // WebInbandTextTrack passed to mediaPlayerDidAddTextTrack.
|
| - InbandTextTrack* textTrack =
|
| - static_cast<InbandTextTrack*>(webTrack->client());
|
| + // This cast is safe because InbandTextTrack is the only concrete
|
| + // implementation of WebInbandTextTrackClient.
|
| + InbandTextTrack* textTrack = toInbandTextTrack(webTrack->client());
|
| if (!textTrack)
|
| return;
|
|
|
|
|