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

Unified Diff: third_party/WebKit/Source/core/layout/api/LineLayoutText.h

Issue 2560383002: Merge 2924: Apply hyphenation when there is only one word in a paragraph (Closed)
Patch Set: Created 4 years 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/core/layout/api/LineLayoutText.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutText.h b/third_party/WebKit/Source/core/layout/api/LineLayoutText.h
index 4e664b2b9410d4a4859faa6392bb403b15b8a4b3..8722e3612b1695da568fd749cd2681074158c225 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutText.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutText.h
@@ -79,6 +79,10 @@ class LineLayoutText : public LineLayoutItem {
const String& text() const { return toText()->text(); }
+ bool containsOnlyWhitespace(unsigned from, unsigned len) const {
+ return toText()->containsOnlyWhitespace(from, len);
+ }
+
float width(unsigned from,
unsigned len,
const Font& font,

Powered by Google App Engine
This is Rietveld 408576698