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

Unified Diff: ui/gfx/render_text_harfbuzz.cc

Issue 1038073002: Reverting "Merging to M41 (2272):", jumped the gun. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2272
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_harfbuzz.cc
diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc
index a2312875db8e514f493d5261e76ed6d9045bbdfa..b193451682fd1277cc947694c0b723aef9b8a13a 100644
--- a/ui/gfx/render_text_harfbuzz.cc
+++ b/ui/gfx/render_text_harfbuzz.cc
@@ -1194,19 +1194,6 @@ void RenderTextHarfBuzz::ShapeRun(internal::TextRunHarfBuzz* run) {
}
#endif
- // Get rid of duplicate fonts in the fallback list. We use the std::unique
- // algorithm for this. However for this function to work we need to sort
- // the font list as the unique algorithm relies on duplicates being adjacent.
- // TODO(ananta)
- // Sorting the list changes the order in which fonts are evaluated. This may
- // cause problems in the way some characters appear. It may be best to do
- // font fallback on the same lines as blink or skia which do this based on
- // character glyph mapping.
- std::sort(fallback_families.begin(), fallback_families.end());
- fallback_families.erase(std::unique(
- fallback_families.begin(), fallback_families.end()),
- fallback_families.end());
-
// Try shaping with the fallback fonts.
for (const auto& family : fallback_families) {
if (family == primary_family)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698