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

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.h

Issue 2386333002: reflow comments in platform/fonts (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/fonts/Font.h
diff --git a/third_party/WebKit/Source/platform/fonts/Font.h b/third_party/WebKit/Source/platform/fonts/Font.h
index 9e17dccfb1687c0837e7a0be625cb1f5d4fe2f8d..bff7ab2b0ded9a9ba7b53770ea2e1d11a38d1433 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.h
+++ b/third_party/WebKit/Source/platform/fonts/Font.h
@@ -101,8 +101,9 @@ class PLATFORM_EXPORT Font {
float deviceScaleFactor,
const SkPaint&) const;
- // Glyph bounds will be the minimum rect containing all glyph strokes, in coordinates using
- // (<text run x position>, <baseline position>) as the origin.
+ // Glyph bounds will be the minimum rect containing all glyph strokes, in
+ // coordinates using (<text run x position>, <baseline position>) as the
+ // origin.
float width(const TextRun&,
HashSet<const SimpleFontData*>* fallbackFonts = nullptr,
FloatRect* glyphBounds = nullptr) const;
@@ -222,7 +223,8 @@ class PLATFORM_EXPORT Font {
mutable unsigned m_canShapeWordByWord : 1;
mutable unsigned m_shapeWordByWordComputed : 1;
- // For accessing buildGlyphBuffer and retrieving fonts used in rendering a node.
+ // For accessing buildGlyphBuffer and retrieving fonts used in rendering a
+ // node.
friend class InspectorCSSAgent;
};
@@ -250,8 +252,9 @@ inline float Font::tabWidth(const SimpleFontData& fontData,
return getFontDescription().letterSpacing();
float distanceToTabStop = baseTabWidth - fmodf(position, baseTabWidth);
- // Let the minimum width be the half of the space width so that it's always recognizable.
- // if the distance to the next tab stop is less than that, advance an additional tab stop.
+ // Let the minimum width be the half of the space width so that it's always
+ // recognizable. if the distance to the next tab stop is less than that,
+ // advance an additional tab stop.
if (distanceToTabStop < fontData.spaceWidth() / 2)
distanceToTabStop += baseTabWidth;

Powered by Google App Engine
This is Rietveld 408576698