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

Unified Diff: third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h

Issue 2392543003: reflow comments in platform/geometry (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
diff --git a/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h b/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
index ea226e7d4192834ed422b2eb3d27b2137d9b063e..a729d689c830f323aacd6a8d03b54375d5dc5fe3 100644
--- a/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
+++ b/third_party/WebKit/Source/platform/geometry/FloatRoundedRect.h
@@ -76,7 +76,8 @@ class PLATFORM_EXPORT FloatRoundedRect {
bool isZero() const;
void scale(float factor);
- // Multiply all radii by |factor| and floor the result to the nearest integer.
+ // Multiply all radii by |factor| and floor the result to the nearest
+ // integer.
void scaleAndFloor(float factor);
void expand(float topWidth,
@@ -126,9 +127,10 @@ class PLATFORM_EXPORT FloatRoundedRect {
void inflateWithRadii(int size);
void inflate(float size) { m_rect.inflate(size); }
- // expandRadii() does not have any effect on corner radii which have zero width or height. This is because the process of expanding
- // the radius of a corner is not allowed to make sharp corners non-sharp. This applies when "spreading" a shadow or
- // a box shape.
+ // expandRadii() does not have any effect on corner radii which have zero
+ // width or height. This is because the process of expanding the radius of a
+ // corner is not allowed to make sharp corners non-sharp. This applies when
+ // "spreading" a shadow or a box shape.
void expandRadii(float size) { m_radii.expand(size); }
void shrinkRadii(float size) { m_radii.shrink(size); }
@@ -171,11 +173,13 @@ class PLATFORM_EXPORT FloatRoundedRect {
void adjustRadii();
bool isRenderable() const;
- // Constrains the radii to be no more than the size of rect(); radii outside of this range are not
- // defined.
- // In addition, the radii of the corners are floored to the nearest integer.
- // FIXME: the flooring should not be necessary. At the moment it causes background bleed in some cases.
- // FIXME: this code is almost the same as adjustRadii()/isRenderable(). Get rid of one of them.
+ // Constrains the radii to be no more than the size of rect(); radii outside
+ // of this range are not defined. In addition, the radii of the corners are
+ // floored to the nearest integer.
+ // FIXME: the flooring should not be necessary. At the moment it causes
+ // background bleed in some cases.
+ // FIXME: this code is almost the same as adjustRadii()/isRenderable(). Get
+ // rid of one of them.
void constrainRadii();
operator SkRRect() const;

Powered by Google App Engine
This is Rietveld 408576698