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

Side by Side Diff: Source/core/rendering/RenderTextTrackCue.cpp

Issue 23668002: Avoid leaking ThreadingPrimitives.h from StackStats.h when collection is off. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org) 2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org)
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 22 matching lines...) Expand all
33 namespace WebCore { 33 namespace WebCore {
34 34
35 RenderTextTrackCue::RenderTextTrackCue(TextTrackCueBox* element) 35 RenderTextTrackCue::RenderTextTrackCue(TextTrackCueBox* element)
36 : RenderBlock(element) 36 : RenderBlock(element)
37 , m_cue(element->getCue()) 37 , m_cue(element->getCue())
38 { 38 {
39 } 39 }
40 40
41 void RenderTextTrackCue::layout() 41 void RenderTextTrackCue::layout()
42 { 42 {
43 StackStats::LayoutCheckPoint layoutCheckPoint;
44 RenderBlock::layout(); 43 RenderBlock::layout();
45 44
46 #if ENABLE(WEBVTT_REGIONS) 45 #if ENABLE(WEBVTT_REGIONS)
47 // If WebVTT Regions are used, the regular WebVTT layout algorithm is no 46 // If WebVTT Regions are used, the regular WebVTT layout algorithm is no
48 // longer necessary, since cues having the region parameter set do not have 47 // longer necessary, since cues having the region parameter set do not have
49 // any positioning parameters. Also, in this case, the regions themselves 48 // any positioning parameters. Also, in this case, the regions themselves
50 // have positioning information. 49 // have positioning information.
51 if (!m_cue->regionId().isEmpty()) 50 if (!m_cue->regionId().isEmpty())
52 return; 51 return;
53 #endif 52 #endif
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 setX(right); 283 setX(right);
285 } 284 }
286 285
287 void RenderTextTrackCue::repositionCueSnapToLinesNotSet() 286 void RenderTextTrackCue::repositionCueSnapToLinesNotSet()
288 { 287 {
289 // FIXME: Implement overlapping detection when snap-to-lines is not set. htt p://wkb.ug/84296 288 // FIXME: Implement overlapping detection when snap-to-lines is not set. htt p://wkb.ug/84296
290 } 289 }
291 290
292 } // namespace WebCore 291 } // namespace WebCore
293 292
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTextControlSingleLine.cpp ('k') | Source/core/rendering/RenderVideo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698