Commit e9cd023a authored by eae's avatar eae Committed by Commit bot

Reformat comments in core/layout/shapes

BUG=563793
TBR=mstensho@opera.com

Review-Url: https://codereview.chromium.org/2390413002
Cr-Commit-Position: refs/heads/master@{#422980}
parent dfcc90f1
......@@ -65,8 +65,8 @@ namespace {
EXPECT_FALSE(segment.isValid); \
}
/* The BoxShape is based on a 100x50 rectangle at 0,0. The shape-margin value is 10,
* so the shapeMarginBoundingBox rectangle is 120x70 at -10,-10:
/* The BoxShape is based on a 100x50 rectangle at 0,0. The shape-margin value is
* 10, so the shapeMarginBoundingBox rectangle is 120x70 at -10,-10:
*
* -10,-10 110,-10
* +--------+
......@@ -115,8 +115,9 @@ TEST_F(BoxShapeTest, zeroRadii) {
TEST_NO_EXCLUDED_INTERVAL(shape, LayoutUnit(100), LayoutUnit(200));
}
/* BoxShape geometry for this test. Corner radii are in parens, x and y intercepts
* for the elliptical corners are noted. The rectangle itself is at 0,0 with width and height 100.
/* BoxShape geometry for this test. Corner radii are in parens, x and y
* intercepts for the elliptical corners are noted. The rectangle itself is at
* 0,0 with width and height 100.
*
* (10, 15) x=10 x=90 (10, 20)
* (--+---------+--)
......
......@@ -109,8 +109,8 @@ static FloatShapeInterval clippedCircleXRange(const FloatPoint& center,
if (center.y() >= y1 && center.y() <= y2)
return FloatShapeInterval(center.x() - radius, center.x() + radius);
// Clip the circle to the vertical range y1,y2 and return the extent of the clipped circle's
// projection on the X axis
// Clip the circle to the vertical range y1,y2 and return the extent of the
// clipped circle's projection on the X axis
float xi = circleXIntercept((y2 < center.y() ? y2 : y1) - center.y(), radius);
return FloatShapeInterval(center.x() - xi, center.x() + xi);
......
......@@ -237,8 +237,8 @@ std::unique_ptr<Shape> Shape::createRasterShape(Image* image,
if (image && imageBuffer) {
// FIXME: This is not totally correct but it is needed to prevent shapes
// that loads SVG Images during paint invalidations to mark layoutObjects for
// layout, which is not allowed. See https://crbug.com/429346
// that loads SVG Images during paint invalidations to mark layoutObjects
// for layout, which is not allowed. See https://crbug.com/429346
ImageObserverDisabler disabler(image);
SkPaint paint;
IntRect imageSourceRect(IntPoint(), image->size());
......
......@@ -54,10 +54,11 @@ struct LineSegment {
bool isValid;
};
// A representation of a BasicShape that enables layout code to determine how to break a line up into segments
// that will fit within or around a shape. The line is defined by a pair of logical Y coordinates and the
// computed segments are returned as pairs of logical X coordinates. The BasicShape itself is defined in
// physical coordinates.
// A representation of a BasicShape that enables layout code to determine how to
// break a line up into segments that will fit within or around a shape. The
// line is defined by a pair of logical Y coordinates and the computed segments
// are returned as pairs of logical X coordinates. The BasicShape itself is
// defined in physical coordinates.
class CORE_EXPORT Shape {
USING_FAST_MALLOC(Shape);
......
......@@ -184,8 +184,9 @@ const Shape& ShapeOutsideInfo::computedShape() const {
*m_layoutBox.containingBlock()->style();
WritingMode writingMode = containingBlockStyle.getWritingMode();
// Make sure contentWidth is not negative. This can happen when containing block has a vertical scrollbar and
// its content is smaller than the scrollbar width.
// Make sure contentWidth is not negative. This can happen when containing
// block has a vertical scrollbar and its content is smaller than the
// scrollbar width.
LayoutUnit maximumValue =
m_layoutBox.containingBlock()
? std::max(LayoutUnit(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment