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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 exceptionState.throwTypeError(ExceptionMessages::notAFiniteNumber(value)
); | 48 exceptionState.throwTypeError(ExceptionMessages::notAFiniteNumber(value)
); |
49 return true; | 49 return true; |
50 } | 50 } |
51 return false; | 51 return false; |
52 } | 52 } |
53 | 53 |
54 TextTrackCue::TextTrackCue(double start, double end) | 54 TextTrackCue::TextTrackCue(double start, double end) |
55 : m_startTime(start) | 55 : m_startTime(start) |
56 , m_endTime(end) | 56 , m_endTime(end) |
57 , m_cueIndex(invalidCueIndex) | 57 , m_cueIndex(invalidCueIndex) |
58 , m_track(0) | 58 , m_track(nullptr) |
59 , m_isActive(false) | 59 , m_isActive(false) |
60 , m_pauseOnExit(false) | 60 , m_pauseOnExit(false) |
61 { | 61 { |
62 } | 62 } |
63 | 63 |
64 void TextTrackCue::cueWillChange() | 64 void TextTrackCue::cueWillChange() |
65 { | 65 { |
66 if (m_track) | 66 if (m_track) |
67 m_track->cueWillChange(this); | 67 m_track->cueWillChange(this); |
68 } | 68 } |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Remove the display tree as soon as the cue becomes inactive. | 167 // Remove the display tree as soon as the cue becomes inactive. |
168 if (!active) | 168 if (!active) |
169 removeDisplayTree(); | 169 removeDisplayTree(); |
170 } | 170 } |
171 | 171 |
172 const AtomicString& TextTrackCue::interfaceName() const | 172 const AtomicString& TextTrackCue::interfaceName() const |
173 { | 173 { |
174 return EventTargetNames::TextTrackCue; | 174 return EventTargetNames::TextTrackCue; |
175 } | 175 } |
176 | 176 |
| 177 void TextTrackCue::trace(Visitor* visitor) |
| 178 { |
| 179 visitor->trace(m_track); |
| 180 } |
| 181 |
177 } // namespace WebCore | 182 } // namespace WebCore |
OLD | NEW |