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

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

Issue 1994483002: Compute min-content width when hyphenation is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 4 years, 7 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.h
diff --git a/third_party/WebKit/Source/platform/text/Hyphenation.h b/third_party/WebKit/Source/platform/text/Hyphenation.h
index bd86f5ae610c76c9eb71bf612134fbf6ba837d50..4b500d9411b378ddfbfb864ed70069f1ac90a82a 100644
--- a/third_party/WebKit/Source/platform/text/Hyphenation.h
+++ b/third_party/WebKit/Source/platform/text/Hyphenation.h
@@ -21,6 +21,7 @@ public:
static Hyphenation* get(const AtomicString& locale);
virtual size_t lastHyphenLocation(const StringView&, size_t beforeIndex) const = 0;
+ virtual Vector<size_t, 8> hyphenLocations(const StringView&, size_t minimumPrefixLength, size_t minimumSuffixLength) const;
static void setForTesting(const AtomicString& locale, PassRefPtr<Hyphenation>);
static void clearForTesting();

Powered by Google App Engine
This is Rietveld 408576698