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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 , m_webVTTNodeTree(0) | 217 , m_webVTTNodeTree(0) |
218 , m_track(0) | 218 , m_track(0) |
219 , m_isActive(false) | 219 , m_isActive(false) |
220 , m_pauseOnExit(false) | 220 , m_pauseOnExit(false) |
221 , m_snapToLines(true) | 221 , m_snapToLines(true) |
222 , m_cueBackgroundBox(HTMLDivElement::create(document)) | 222 , m_cueBackgroundBox(HTMLDivElement::create(document)) |
223 , m_displayTreeShouldChange(true) | 223 , m_displayTreeShouldChange(true) |
224 , m_displayDirection(CSSValueLtr) | 224 , m_displayDirection(CSSValueLtr) |
225 , m_notifyRegion(true) | 225 , m_notifyRegion(true) |
226 { | 226 { |
227 ScriptWrappable::init(this); | |
228 } | 227 } |
229 | 228 |
230 TextTrackCue::~TextTrackCue() | 229 TextTrackCue::~TextTrackCue() |
231 { | 230 { |
232 displayTreeInternal()->remove(ASSERT_NO_EXCEPTION); | 231 displayTreeInternal()->remove(ASSERT_NO_EXCEPTION); |
233 } | 232 } |
234 | 233 |
235 PassRefPtr<TextTrackCueBox> TextTrackCue::displayTreeInternal() | 234 PassRefPtr<TextTrackCueBox> TextTrackCue::displayTreeInternal() |
236 { | 235 { |
237 if (!m_displayTree) | 236 if (!m_displayTree) |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 return false; | 1223 return false; |
1225 if (m_cueSize != cue.size()) | 1224 if (m_cueSize != cue.size()) |
1226 return false; | 1225 return false; |
1227 if (align() != cue.align()) | 1226 if (align() != cue.align()) |
1228 return false; | 1227 return false; |
1229 | 1228 |
1230 return true; | 1229 return true; |
1231 } | 1230 } |
1232 | 1231 |
1233 } // namespace WebCore | 1232 } // namespace WebCore |
OLD | NEW |