OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. | 2 * Copyright (c) 2013, Opera Software ASA. 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 , m_notifyRegion(true) | 216 , m_notifyRegion(true) |
217 { | 217 { |
218 ScriptWrappable::init(this); | 218 ScriptWrappable::init(this); |
219 } | 219 } |
220 | 220 |
221 VTTCue::~VTTCue() | 221 VTTCue::~VTTCue() |
222 { | 222 { |
223 displayTreeInternal()->remove(ASSERT_NO_EXCEPTION); | 223 displayTreeInternal()->remove(ASSERT_NO_EXCEPTION); |
224 } | 224 } |
225 | 225 |
| 226 #ifndef NDEBUG |
226 String VTTCue::toString() const | 227 String VTTCue::toString() const |
227 { | 228 { |
228 return String::format("%p id=%s interval=%f-->%f cue=%s)", this, id().utf8()
.data(), startTime(), endTime(), text().utf8().data()); | 229 return String::format("%p id=%s interval=%f-->%f cue=%s)", this, id().utf8()
.data(), startTime(), endTime(), text().utf8().data()); |
229 } | 230 } |
| 231 #endif |
230 | 232 |
231 PassRefPtr<VTTCueBox> VTTCue::displayTreeInternal() | 233 PassRefPtr<VTTCueBox> VTTCue::displayTreeInternal() |
232 { | 234 { |
233 if (!m_displayTree) | 235 if (!m_displayTree) |
234 m_displayTree = VTTCueBox::create(document(), this); | 236 m_displayTree = VTTCueBox::create(document(), this); |
235 return m_displayTree; | 237 return m_displayTree; |
236 } | 238 } |
237 | 239 |
238 void VTTCue::cueDidChange() | 240 void VTTCue::cueDidChange() |
239 { | 241 { |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 return m_cueBackgroundBox->executionContext(); | 1100 return m_cueBackgroundBox->executionContext(); |
1099 } | 1101 } |
1100 | 1102 |
1101 Document& VTTCue::document() const | 1103 Document& VTTCue::document() const |
1102 { | 1104 { |
1103 ASSERT(m_cueBackgroundBox); | 1105 ASSERT(m_cueBackgroundBox); |
1104 return m_cueBackgroundBox->document(); | 1106 return m_cueBackgroundBox->document(); |
1105 } | 1107 } |
1106 | 1108 |
1107 } // namespace WebCore | 1109 } // namespace WebCore |
OLD | NEW |