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

Unified Diff: third_party/WebKit/Source/platform/text/Hyphenation.cpp

Issue 1978683002: Enable hyphens: auto and none in BreakingContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments for heuristic, adjust widths of hyphens-auto-mock test Created 4 years, 7 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/platform/text/Hyphenation.cpp
diff --git a/third_party/WebKit/Source/platform/text/Hyphenation.cpp b/third_party/WebKit/Source/platform/text/Hyphenation.cpp
index 357ffb78a9cb5c0184b227771e1e73bd9e7088f2..563b60f101c31bf096436336029030a7dfc7ab43 100644
--- a/third_party/WebKit/Source/platform/text/Hyphenation.cpp
+++ b/third_party/WebKit/Source/platform/text/Hyphenation.cpp
@@ -16,6 +16,7 @@ Hyphenation::HyphenationMap& Hyphenation::getHyphenationMap()
Hyphenation* Hyphenation::get(const AtomicString& locale)
{
+ DCHECK(!locale.isNull());
Hyphenation::HyphenationMap& hyphenationMap = getHyphenationMap();
auto result = hyphenationMap.add(locale, nullptr);
if (result.isNewEntry)
« no previous file with comments | « third_party/WebKit/Source/platform/text/Hyphenation.h ('k') | third_party/WebKit/Source/platform/text/HyphenationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698