| 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 f232de118082894b43c2c819e007c3df21de56d1..18a05060d638e33a7ded214f4d4d36b3db3f3fcd 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -1082,7 +1082,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)
|
|
|