| Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| index f4ddbc24d241a7349c12a07fae6013710d75b2be..eb94635e5cadec1e0d2c87fa50c6c384813e54ba 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -1586,6 +1586,27 @@ void ComputedStyle::ClearResetDirectives() {
|
| it->value.ClearReset();
|
| }
|
|
|
| +AtomicString ComputedStyle::LocaleForLineBreakIterator() const {
|
| + LineBreakIteratorMode mode = LineBreakIteratorMode::kDefault;
|
| + switch (GetLineBreak()) {
|
| + case kLineBreakAuto:
|
| + case kLineBreakAfterWhiteSpace:
|
| + return Locale();
|
| + case kLineBreakNormal:
|
| + mode = LineBreakIteratorMode::kNormal;
|
| + break;
|
| + case kLineBreakStrict:
|
| + mode = LineBreakIteratorMode::kStrict;
|
| + break;
|
| + case kLineBreakLoose:
|
| + mode = LineBreakIteratorMode::kLoose;
|
| + break;
|
| + }
|
| + if (const LayoutLocale* locale = GetFontDescription().Locale())
|
| + return locale->LocaleWithBreakKeyword(mode);
|
| + return Locale();
|
| +}
|
| +
|
| Hyphenation* ComputedStyle::GetHyphenation() const {
|
| return GetHyphens() == kHyphensAuto
|
| ? GetFontDescription().LocaleOrDefault().GetHyphenation()
|
|
|