| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 if (value == descriptionsKeyword()) | 139 if (value == descriptionsKeyword()) |
| 140 return true; | 140 return true; |
| 141 if (value == chaptersKeyword()) | 141 if (value == chaptersKeyword()) |
| 142 return true; | 142 return true; |
| 143 if (value == metadataKeyword()) | 143 if (value == metadataKeyword()) |
| 144 return true; | 144 return true; |
| 145 | 145 |
| 146 return false; | 146 return false; |
| 147 } | 147 } |
| 148 | 148 |
| 149 void TextTrack::setTrackList(TextTrackList* trackList) |
| 150 { |
| 151 m_trackList = trackList; |
| 152 if (!m_trackList && m_cues && m_client) |
| 153 m_client->textTrackRemoveCues(this, m_cues.get()); |
| 154 } |
| 155 |
| 149 void TextTrack::setKind(const AtomicString& newKind) | 156 void TextTrack::setKind(const AtomicString& newKind) |
| 150 { | 157 { |
| 151 AtomicString oldKind = kind(); | 158 AtomicString oldKind = kind(); |
| 152 TrackBase::setKind(newKind); | 159 TrackBase::setKind(newKind); |
| 153 | 160 |
| 154 if (m_client && oldKind != kind()) | 161 if (m_client && oldKind != kind()) |
| 155 m_client->textTrackKindChanged(this); | 162 m_client->textTrackKindChanged(this); |
| 156 } | 163 } |
| 157 | 164 |
| 158 void TextTrack::setMode(const AtomicString& mode) | 165 void TextTrack::setMode(const AtomicString& mode) |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 { | 423 { |
| 417 return EventTargetNames::TextTrack; | 424 return EventTargetNames::TextTrack; |
| 418 } | 425 } |
| 419 | 426 |
| 420 ExecutionContext* TextTrack::executionContext() const | 427 ExecutionContext* TextTrack::executionContext() const |
| 421 { | 428 { |
| 422 return m_document; | 429 return m_document; |
| 423 } | 430 } |
| 424 | 431 |
| 425 } // namespace WebCore | 432 } // namespace WebCore |
| 426 | |
| OLD | NEW |