| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |