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

Unified Diff: third_party/WebKit/Source/platform/LayoutLocale.h

Issue 2715153003: Implement 'normal', 'strict', and 'loose' of the 'line-break' property (Closed)
Patch Set: Rebase Created 3 years, 10 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/LayoutLocale.h
diff --git a/third_party/WebKit/Source/platform/LayoutLocale.h b/third_party/WebKit/Source/platform/LayoutLocale.h
index f92811c82f863638acdac7285d8dfbdeb46b4c2e..66e9f1a838e227095ba8c9263c358acb52b02373 100644
--- a/third_party/WebKit/Source/platform/LayoutLocale.h
+++ b/third_party/WebKit/Source/platform/LayoutLocale.h
@@ -19,6 +19,8 @@ namespace blink {
class Hyphenation;
+enum class LineBreakIteratorMode { Default, Normal, Strict, Loose };
+
class PLATFORM_EXPORT LayoutLocale : public RefCounted<LayoutLocale> {
public:
static const LayoutLocale* get(const AtomicString& locale);
@@ -57,6 +59,8 @@ class PLATFORM_EXPORT LayoutLocale : public RefCounted<LayoutLocale> {
Hyphenation* getHyphenation() const;
+ AtomicString localeWithBreakKeyword(LineBreakIteratorMode) const;
+
static PassRefPtr<LayoutLocale> createForTesting(const AtomicString&);
static void clearForTesting();
static void setHyphenationForTesting(const AtomicString&,

Powered by Google App Engine
This is Rietveld 408576698