Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: Source/core/html/track/TextTrackCue.cpp

Issue 63173020: Split VTTCue from TextTrackCue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/TextTrackCue.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/track/TextTrackCue.h ('k') | Source/core/html/track/TextTrackCue.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698