| Index: Source/core/html/track/TextTrack.cpp
|
| diff --git a/Source/core/html/track/TextTrack.cpp b/Source/core/html/track/TextTrack.cpp
|
| index 3916eb7159ac8f3b29f831a64debde7c48ff5597..e87191fa7bcf03bd720931d2c6c26353efbc52dd 100644
|
| --- a/Source/core/html/track/TextTrack.cpp
|
| +++ b/Source/core/html/track/TextTrack.cpp
|
| @@ -458,6 +458,14 @@ int TextTrack::trackIndexRelativeToRenderedTracks()
|
| return m_renderedTrackIndex;
|
| }
|
|
|
| +bool TextTrack::isRenderable()
|
| +{
|
| + // A track can be displayed when it's of kind captions or subtitles and hasn't failed to load
|
| + if ((kind() == captionsKeyword() || kind() == subtitlesKeyword()) && readinessState() != FailedToLoad)
|
| + return true;
|
| + return false;
|
| +}
|
| +
|
| const AtomicString& TextTrack::interfaceName() const
|
| {
|
| return EventTargetNames::TextTrack;
|
|
|