| Index: Source/core/html/track/TextTrack.cpp
|
| diff --git a/Source/core/html/track/TextTrack.cpp b/Source/core/html/track/TextTrack.cpp
|
| index c653dff08cfa07febfe8fb840ca4ec940c297792..dc122b235931ef225e26469027b340298366cf2c 100644
|
| --- a/Source/core/html/track/TextTrack.cpp
|
| +++ b/Source/core/html/track/TextTrack.cpp
|
| @@ -141,6 +141,22 @@ bool TextTrack::isValidKindKeyword(const AtomicString& value)
|
| return false;
|
| }
|
|
|
| +bool TextTrack::isValidKindKeyword(const String& value)
|
| +{
|
| + if (value == subtitlesKeyword())
|
| + return true;
|
| + if (value == captionsKeyword())
|
| + return true;
|
| + if (value == descriptionsKeyword())
|
| + return true;
|
| + if (value == chaptersKeyword())
|
| + return true;
|
| + if (value == metadataKeyword())
|
| + return true;
|
| +
|
| + return false;
|
| +}
|
| +
|
| void TextTrack::setTrackList(TextTrackList* trackList)
|
| {
|
| if (!trackList && mediaElement() && m_cues)
|
|
|