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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.cpp

Issue 2161683002: Add LayoutLocale class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test stability Created 4 years, 5 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/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)

Powered by Google App Engine
This is Rietveld 408576698