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

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

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months 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') | Source/core/html/track/vtt/VTTParser.h » ('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) 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 setInlineStyleProperty(CSSPropertyWhiteSpace, CSSValuePre); 205 setInlineStyleProperty(CSSPropertyWhiteSpace, CSSValuePre);
206 } 206 }
207 } 207 }
208 208
209 LayoutObject* VTTCueBox::createRenderer(const LayoutStyle&) 209 LayoutObject* VTTCueBox::createRenderer(const LayoutStyle&)
210 { 210 {
211 return new RenderVTTCue(this); 211 return new RenderVTTCue(this);
212 } 212 }
213 213
214 void VTTCueBox::trace(Visitor* visitor) 214 DEFINE_TRACE(VTTCueBox)
215 { 215 {
216 visitor->trace(m_cue); 216 visitor->trace(m_cue);
217 HTMLDivElement::trace(visitor); 217 HTMLDivElement::trace(visitor);
218 } 218 }
219 219
220 VTTCue::VTTCue(Document& document, double startTime, double endTime, const Strin g& text) 220 VTTCue::VTTCue(Document& document, double startTime, double endTime, const Strin g& text)
221 : TextTrackCue(startTime, endTime) 221 : TextTrackCue(startTime, endTime)
222 , m_text(text) 222 , m_text(text)
223 , m_linePosition(std::numeric_limits<float>::quiet_NaN()) 223 , m_linePosition(std::numeric_limits<float>::quiet_NaN())
224 , m_textPosition(std::numeric_limits<float>::quiet_NaN()) 224 , m_textPosition(std::numeric_limits<float>::quiet_NaN())
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 ASSERT(m_cueBackgroundBox); 1119 ASSERT(m_cueBackgroundBox);
1120 return m_cueBackgroundBox->executionContext(); 1120 return m_cueBackgroundBox->executionContext();
1121 } 1121 }
1122 1122
1123 Document& VTTCue::document() const 1123 Document& VTTCue::document() const
1124 { 1124 {
1125 ASSERT(m_cueBackgroundBox); 1125 ASSERT(m_cueBackgroundBox);
1126 return m_cueBackgroundBox->document(); 1126 return m_cueBackgroundBox->document();
1127 } 1127 }
1128 1128
1129 void VTTCue::trace(Visitor* visitor) 1129 DEFINE_TRACE(VTTCue)
1130 { 1130 {
1131 visitor->trace(m_vttNodeTree); 1131 visitor->trace(m_vttNodeTree);
1132 visitor->trace(m_cueBackgroundBox); 1132 visitor->trace(m_cueBackgroundBox);
1133 visitor->trace(m_displayTree); 1133 visitor->trace(m_displayTree);
1134 TextTrackCue::trace(visitor); 1134 TextTrackCue::trace(visitor);
1135 } 1135 }
1136 1136
1137 } // namespace blink 1137 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/track/vtt/VTTCue.h ('k') | Source/core/html/track/vtt/VTTParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698