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

Side by Side Diff: third_party/WebKit/Source/core/layout/shapes/RectangleShape.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
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 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 } 84 }
85 85
86 return LineSegment(x1, x2); 86 return LineSegment(x1, x2);
87 } 87 }
88 88
89 void RectangleShape::buildDisplayPaths(DisplayPaths& paths) const { 89 void RectangleShape::buildDisplayPaths(DisplayPaths& paths) const {
90 paths.shape.addRoundedRect(m_bounds, m_radii); 90 paths.shape.addRoundedRect(m_bounds, m_radii);
91 if (shapeMargin()) 91 if (shapeMargin())
92 paths.marginShape.addRoundedRect( 92 paths.marginShape.addRoundedRect(
93 shapeMarginBounds(), FloatSize(m_radii.width() + shapeMargin(), 93 shapeMarginBounds(),
94 m_radii.height() + shapeMargin())); 94 FloatSize(m_radii.width() + shapeMargin(),
95 m_radii.height() + shapeMargin()));
95 } 96 }
96 97
97 } // namespace blink 98 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698