| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // 4.8.10.12.3 Sourcing out-of-band text tracks | 98 // 4.8.10.12.3 Sourcing out-of-band text tracks |
| 99 // As the kind, label, and srclang attributes are set, changed, or removed,
the text track must update accordingly... | 99 // As the kind, label, and srclang attributes are set, changed, or removed,
the text track must update accordingly... |
| 100 } else if (name == kindAttr) { | 100 } else if (name == kindAttr) { |
| 101 track()->setKind(value.lower()); | 101 track()->setKind(value.lower()); |
| 102 } else if (name == labelAttr) { | 102 } else if (name == labelAttr) { |
| 103 track()->setLabel(value); | 103 track()->setLabel(value); |
| 104 } else if (name == srclangAttr) { | 104 } else if (name == srclangAttr) { |
| 105 track()->setLanguage(value); | 105 track()->setLanguage(value); |
| 106 } else if (name == idAttr) { | 106 } else if (name == idAttr) { |
| 107 track()->setId(value); | 107 track()->setId(value); |
| 108 } else if (name == defaultAttr) { | |
| 109 track()->setIsDefault(!value.isNull()); | |
| 110 } | 108 } |
| 111 | 109 |
| 112 HTMLElement::parseAttribute(name, value); | 110 HTMLElement::parseAttribute(name, value); |
| 113 } | 111 } |
| 114 | 112 |
| 115 const AtomicString& HTMLTrackElement::kind() | 113 const AtomicString& HTMLTrackElement::kind() |
| 116 { | 114 { |
| 117 return track()->kind(); | 115 return track()->kind(); |
| 118 } | 116 } |
| 119 | 117 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 return nullptr; | 267 return nullptr; |
| 270 } | 268 } |
| 271 | 269 |
| 272 DEFINE_TRACE(HTMLTrackElement) | 270 DEFINE_TRACE(HTMLTrackElement) |
| 273 { | 271 { |
| 274 visitor->trace(m_track); | 272 visitor->trace(m_track); |
| 275 HTMLElement::trace(visitor); | 273 HTMLElement::trace(visitor); |
| 276 } | 274 } |
| 277 | 275 |
| 278 } | 276 } |
| OLD | NEW |