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

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

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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/shadow/TextControlInnerElements.cpp ('k') | Source/core/page/FrameView.cpp » ('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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 174
175 const AtomicString& TextTrackCueBox::textTrackCueBoxShadowPseudoId() 175 const AtomicString& TextTrackCueBox::textTrackCueBoxShadowPseudoId()
176 { 176 {
177 DEFINE_STATIC_LOCAL(const AtomicString, trackDisplayBoxShadowPseudoId, ("-we bkit-media-text-track-display", AtomicString::ConstructFromLiteral)); 177 DEFINE_STATIC_LOCAL(const AtomicString, trackDisplayBoxShadowPseudoId, ("-we bkit-media-text-track-display", AtomicString::ConstructFromLiteral));
178 return trackDisplayBoxShadowPseudoId; 178 return trackDisplayBoxShadowPseudoId;
179 } 179 }
180 180
181 RenderObject* TextTrackCueBox::createRenderer(RenderStyle*) 181 RenderObject* TextTrackCueBox::createRenderer(RenderStyle*)
182 { 182 {
183 return new (document()->renderArena()) RenderTextTrackCue(this); 183 return new RenderTextTrackCue(this);
184 } 184 }
185 185
186 // ---------------------------- 186 // ----------------------------
187 187
188 TextTrackCue::TextTrackCue(ScriptExecutionContext* context, double start, double end, const String& content) 188 TextTrackCue::TextTrackCue(ScriptExecutionContext* context, double start, double end, const String& content)
189 : m_startTime(start) 189 : m_startTime(start)
190 , m_endTime(end) 190 , m_endTime(end)
191 , m_content(content) 191 , m_content(content)
192 , m_linePosition(undefinedPosition) 192 , m_linePosition(undefinedPosition)
193 , m_computedLinePosition(undefinedPosition) 193 , m_computedLinePosition(undefinedPosition)
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 return false; 1181 return false;
1182 if (m_cueSize != cue.size()) 1182 if (m_cueSize != cue.size())
1183 return false; 1183 return false;
1184 if (align() != cue.align()) 1184 if (align() != cue.align())
1185 return false; 1185 return false;
1186 1186
1187 return true; 1187 return true;
1188 } 1188 }
1189 1189
1190 } // namespace WebCore 1190 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/shadow/TextControlInnerElements.cpp ('k') | Source/core/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698