Index: third_party/WebKit/Source/core/layout/LayoutText.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp |
index 8aa720adbd93961e9216ea85169f0cf31e2739dc..217a32e7d488d0f6c70c7219adfd58456a803c81 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp |
@@ -927,8 +927,7 @@ void LayoutText::computePreferredLogicalWidths(float leadWidth, HashSet<const Si |
bool breakAll = (styleToUse.wordBreak() == BreakAllWordBreak || styleToUse.wordBreak() == BreakWordBreak) && styleToUse.autoWrap(); |
bool keepAll = styleToUse.wordBreak() == KeepAllWordBreak && styleToUse.autoWrap(); |
- Hyphenation* hyphenation = styleToUse.getHyphens() == HyphensAuto |
- ? Hyphenation::get(f.getFontDescription().locale()) : nullptr; |
+ Hyphenation* hyphenation = styleToUse.getHyphenation(); |
bool disableSoftHyphen = styleToUse.getHyphens() == HyphensNone; |
float maxWordWidth = 0; |
if (!hyphenation) |