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

Side by Side Diff: Source/core/html/track/vtt/VTTCue.cpp

Issue 104243003: Merge bools into bit fields in TextTrackCue and VTTCue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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/vtt/VTTCue.h ('k') | no next file » | 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) 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 VTTCue::VTTCue(Document& document, double startTime, double endTime, const Strin g& text) 206 VTTCue::VTTCue(Document& document, double startTime, double endTime, const Strin g& text)
207 : TextTrackCue(startTime, endTime) 207 : TextTrackCue(startTime, endTime)
208 , m_text(text) 208 , m_text(text)
209 , m_linePosition(undefinedPosition) 209 , m_linePosition(undefinedPosition)
210 , m_computedLinePosition(undefinedPosition) 210 , m_computedLinePosition(undefinedPosition)
211 , m_textPosition(50) 211 , m_textPosition(50)
212 , m_cueSize(100) 212 , m_cueSize(100)
213 , m_writingDirection(Horizontal) 213 , m_writingDirection(Horizontal)
214 , m_cueAlignment(Middle) 214 , m_cueAlignment(Middle)
215 , m_vttNodeTree(0) 215 , m_vttNodeTree(0)
216 , m_cueBackgroundBox(HTMLDivElement::create(document))
217 , m_displayDirection(CSSValueLtr)
216 , m_snapToLines(true) 218 , m_snapToLines(true)
217 , m_cueBackgroundBox(HTMLDivElement::create(document))
218 , m_displayTreeShouldChange(true) 219 , m_displayTreeShouldChange(true)
219 , m_displayDirection(CSSValueLtr)
220 , m_notifyRegion(true) 220 , m_notifyRegion(true)
221 { 221 {
222 ScriptWrappable::init(this); 222 ScriptWrappable::init(this);
223 } 223 }
224 224
225 VTTCue::~VTTCue() 225 VTTCue::~VTTCue()
226 { 226 {
227 displayTreeInternal()->remove(ASSERT_NO_EXCEPTION); 227 displayTreeInternal()->remove(ASSERT_NO_EXCEPTION);
228 } 228 }
229 229
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 return m_cueBackgroundBox->executionContext(); 1102 return m_cueBackgroundBox->executionContext();
1103 } 1103 }
1104 1104
1105 Document& VTTCue::document() const 1105 Document& VTTCue::document() const
1106 { 1106 {
1107 ASSERT(m_cueBackgroundBox); 1107 ASSERT(m_cueBackgroundBox);
1108 return m_cueBackgroundBox->document(); 1108 return m_cueBackgroundBox->document();
1109 } 1109 }
1110 1110
1111 } // namespace WebCore 1111 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/track/vtt/VTTCue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698