| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 { | 199 { |
| 200 return new RenderVTTCue(this); | 200 return new RenderVTTCue(this); |
| 201 } | 201 } |
| 202 | 202 |
| 203 void VTTCueBox::trace(Visitor* visitor) | 203 void VTTCueBox::trace(Visitor* visitor) |
| 204 { | 204 { |
| 205 visitor->trace(m_cue); | 205 visitor->trace(m_cue); |
| 206 HTMLDivElement::trace(visitor); | 206 HTMLDivElement::trace(visitor); |
| 207 } | 207 } |
| 208 | 208 |
| 209 PassRefPtrWillBeRawPtr<VTTCue> VTTCue::create(ExecutionContext* executionContext
, double startTime, double endTime, const String& text) |
| 210 { |
| 211 return adoptRefWillBeRefCountedGarbageCollected(new VTTCue(*toDocument(execu
tionContext), startTime, endTime, text)); |
| 212 } |
| 213 |
| 209 VTTCue::VTTCue(Document& document, double startTime, double endTime, const Strin
g& text) | 214 VTTCue::VTTCue(Document& document, double startTime, double endTime, const Strin
g& text) |
| 210 : TextTrackCue(startTime, endTime) | 215 : TextTrackCue(startTime, endTime) |
| 211 , m_text(text) | 216 , m_text(text) |
| 212 , m_linePosition(undefinedPosition) | 217 , m_linePosition(undefinedPosition) |
| 213 , m_computedLinePosition(undefinedPosition) | 218 , m_computedLinePosition(undefinedPosition) |
| 214 , m_textPosition(50) | 219 , m_textPosition(50) |
| 215 , m_cueSize(100) | 220 , m_cueSize(100) |
| 216 , m_writingDirection(Horizontal) | 221 , m_writingDirection(Horizontal) |
| 217 , m_cueAlignment(Middle) | 222 , m_cueAlignment(Middle) |
| 218 , m_vttNodeTree(nullptr) | 223 , m_vttNodeTree(nullptr) |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 | 1103 |
| 1099 void VTTCue::trace(Visitor* visitor) | 1104 void VTTCue::trace(Visitor* visitor) |
| 1100 { | 1105 { |
| 1101 visitor->trace(m_vttNodeTree); | 1106 visitor->trace(m_vttNodeTree); |
| 1102 visitor->trace(m_cueBackgroundBox); | 1107 visitor->trace(m_cueBackgroundBox); |
| 1103 visitor->trace(m_displayTree); | 1108 visitor->trace(m_displayTree); |
| 1104 TextTrackCue::trace(visitor); | 1109 TextTrackCue::trace(visitor); |
| 1105 } | 1110 } |
| 1106 | 1111 |
| 1107 } // namespace WebCore | 1112 } // namespace WebCore |
| OLD | NEW |