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: third_party/WebKit/Source/core/layout/LayoutVTTCue.cpp

Issue 2405633002: Reformat comments in core/layout (Closed)
Patch Set: Created 4 years, 2 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
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // 24. Jump back to the step labeled step loop. 275 // 24. Jump back to the step labeled step loop.
276 } 276 }
277 } 277 }
278 278
279 } // unnamed namespace 279 } // unnamed namespace
280 280
281 LayoutVTTCue::LayoutVTTCue(ContainerNode* node, float snapToLinesPosition) 281 LayoutVTTCue::LayoutVTTCue(ContainerNode* node, float snapToLinesPosition)
282 : LayoutBlockFlow(node), m_snapToLinesPosition(snapToLinesPosition) {} 282 : LayoutBlockFlow(node), m_snapToLinesPosition(snapToLinesPosition) {}
283 283
284 void LayoutVTTCue::repositionCueSnapToLinesNotSet() { 284 void LayoutVTTCue::repositionCueSnapToLinesNotSet() {
285 // FIXME: Implement overlapping detection when snap-to-lines is not set. http: //wkb.ug/84296 285 // FIXME: Implement overlapping detection when snap-to-lines is not set.
286 // http://wkb.ug/84296
286 287
287 // http://dev.w3.org/html5/webvtt/#dfn-apply-webvtt-cue-settings 288 // http://dev.w3.org/html5/webvtt/#dfn-apply-webvtt-cue-settings
288 // Step 13, "If cue's text track cue snap-to-lines flag is not set". 289 // Step 13, "If cue's text track cue snap-to-lines flag is not set".
289 290
290 // 1. Let bounding box be the bounding box of the boxes in boxes. 291 // 1. Let bounding box be the bounding box of the boxes in boxes.
291 292
292 // 2. Run the appropriate steps from the following list: 293 // 2. Run the appropriate steps from the following list:
293 // If the text track cue writing direction is horizontal 294 // If the text track cue writing direction is horizontal
294 // If the text track cue line alignment is middle alignment 295 // If the text track cue line alignment is middle alignment
295 // Move all the boxes in boxes up by half of the height of 296 // Move all the boxes in boxes up by half of the height of
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 LayoutState state(*this, locationOffset()); 358 LayoutState state(*this, locationOffset());
358 359
359 // http://dev.w3.org/html5/webvtt/#dfn-apply-webvtt-cue-settings - step 13. 360 // http://dev.w3.org/html5/webvtt/#dfn-apply-webvtt-cue-settings - step 13.
360 if (!std::isnan(m_snapToLinesPosition)) 361 if (!std::isnan(m_snapToLinesPosition))
361 SnapToLinesLayouter(*this, computeControlsRect()).layout(); 362 SnapToLinesLayouter(*this, computeControlsRect()).layout();
362 else 363 else
363 repositionCueSnapToLinesNotSet(); 364 repositionCueSnapToLinesNotSet();
364 } 365 }
365 366
366 } // namespace blink 367 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutVideo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698