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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // have positioning information. | 49 // have positioning information. |
50 if (!m_cue->regionId().isEmpty()) | 50 if (!m_cue->regionId().isEmpty()) |
51 return; | 51 return; |
52 | 52 |
53 LayoutStateMaintainer statePusher(*this, locationOffset()); | 53 LayoutStateMaintainer statePusher(*this, locationOffset()); |
54 | 54 |
55 if (m_cue->snapToLines()) | 55 if (m_cue->snapToLines()) |
56 repositionCueSnapToLinesSet(); | 56 repositionCueSnapToLinesSet(); |
57 else | 57 else |
58 repositionCueSnapToLinesNotSet(); | 58 repositionCueSnapToLinesNotSet(); |
59 | |
60 statePusher.pop(); | |
61 } | 59 } |
62 | 60 |
63 bool RenderVTTCue::findFirstLineBox(InlineFlowBox*& firstLineBox) | 61 bool RenderVTTCue::findFirstLineBox(InlineFlowBox*& firstLineBox) |
64 { | 62 { |
65 if (firstChild()->isRenderInline()) | 63 if (firstChild()->isRenderInline()) |
66 firstLineBox = toRenderInline(firstChild())->firstLineBox(); | 64 firstLineBox = toRenderInline(firstChild())->firstLineBox(); |
67 else | 65 else |
68 return false; | 66 return false; |
69 | 67 |
70 return true; | 68 return true; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 } | 262 } |
265 } | 263 } |
266 | 264 |
267 void RenderVTTCue::repositionCueSnapToLinesNotSet() | 265 void RenderVTTCue::repositionCueSnapToLinesNotSet() |
268 { | 266 { |
269 // FIXME: Implement overlapping detection when snap-to-lines is not set. htt
p://wkb.ug/84296 | 267 // FIXME: Implement overlapping detection when snap-to-lines is not set. htt
p://wkb.ug/84296 |
270 } | 268 } |
271 | 269 |
272 } // namespace WebCore | 270 } // namespace WebCore |
273 | 271 |
OLD | NEW |