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

Unified Diff: third_party/WebKit/Source/platform/text/Hyphenation.cpp

Issue 2385283002: reflow comments in platform/{testing,text} (Closed)
Patch Set: idunnolol 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/text/Hyphenation.cpp
diff --git a/third_party/WebKit/Source/platform/text/Hyphenation.cpp b/third_party/WebKit/Source/platform/text/Hyphenation.cpp
index 7a73d9841ae97c4a6e4f86fe96b739854a57e1a1..99431b415c426257778a86e82523ab2117f39788 100644
--- a/third_party/WebKit/Source/platform/text/Hyphenation.cpp
+++ b/third_party/WebKit/Source/platform/text/Hyphenation.cpp
@@ -24,9 +24,10 @@ Vector<size_t, 8> Hyphenation::hyphenLocations(const StringView& text) const {
}
int Hyphenation::minimumPrefixWidth(const Font& font) {
- // If the maximum width available for the prefix before the hyphen is small, then it is very unlikely
- // that an hyphenation opportunity exists, so do not bother to look for it.
- // These are heuristic numbers for performance added in http://wkb.ug/45606
+ // If the maximum width available for the prefix before the hyphen is small,
+ // then it is very unlikely that an hyphenation opportunity exists, so do not
+ // bother to look for it. These are heuristic numbers for performance added
+ // in http://wkb.ug/45606
const int minimumPrefixWidthNumerator = 5;
const int minimumPrefixWidthDenominator = 4;
return font.getFontDescription().computedPixelSize() *
« no previous file with comments | « third_party/WebKit/Source/platform/text/DecodeEscapeSequences.h ('k') | third_party/WebKit/Source/platform/text/LineEnding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698