| 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 23ccbf0b5b6e46b4a8a9c87e885174e19b14f83d..540fe25c2a7f397e0280c7fb0a4c77bacf439d78 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -1073,7 +1073,8 @@ void LayoutText::computePreferredLogicalWidths(
|
| bool keepAll =
|
| styleToUse.wordBreak() == KeepAllWordBreak && styleToUse.autoWrap();
|
|
|
| - Hyphenation* hyphenation = styleToUse.getHyphenation();
|
| + Hyphenation* hyphenation =
|
| + styleToUse.autoWrap() ? styleToUse.getHyphenation() : nullptr;
|
| bool disableSoftHyphen = styleToUse.getHyphens() == HyphensNone;
|
| float maxWordWidth = 0;
|
| if (!hyphenation)
|
|
|